Kotlin 数据类与密封类数据类Kotlin 可以创建一个只包含数据的类,关键字为data: data class User(val name: String, val age: Int) 编译器会自动的从主构造函数中 ...
確定! 回上一頁