enum 类. 与java不同,Kotlin中enum当做class的修饰符使用. 1.常见用法: enum class Direction { NORTH, SOUTH, WEST, EAST }. 2.有成员属性时: enum class Color(val ...
確定! 回上一頁