官术网_书友最值得收藏!

Enum raw values

We saw how enums are defined and used. Enum cases can come with predefined values, which we call raw values. To create enums with raw values, the following rules should be adhered:

  • All raw values should be in the same type.
  • Inside the enum declaration, each raw value should be unique.
  • Only possible values allowed to use are strings, characters, integer, and floating point numbers.
主站蜘蛛池模板: 吐鲁番市| 昆明市| 南郑县| 和田县| 茶陵县| 侯马市| 襄垣县| 莱西市| 楚雄市| 安仁县| 汝阳县| 子长县| 武夷山市| 周口市| 拜城县| 丰台区| 贞丰县| 泰州市| 格尔木市| 会理县| 双峰县| 余干县| 洪洞县| 江安县| 遂宁市| 汪清县| 宽甸| 和静县| 河池市| 淳安县| 仙游县| 肃宁县| 车险| 富锦市| 务川| 威海市| 额尔古纳市| 偏关县| 开远市| 商河县| 彭阳县|