首页
Java
登录
6mi
u
盘
搜
搜 索
Java
建议7 将0值作为枚举的默认值
建议7 将0值作为枚举的默认值
xiaoxiao
2021-02-27
780
允许使用枚举类型有byte、sbyte、short、ushort、int、uint、long和ulong。
应该始终将0值作为枚举的默认值。因为枚举的默认值就是0,会避免一些不必要的错误。
转载请注明原文地址: https://www.6miu.com/read-727.html
技术
最新回复
(
0
)