1.get/set 方法 class Person { var name: String? = null var age: Int = 0 get() { return field } set(value) { field = value } }