當然有,我們可以直接在Primary Constructor中定義類的屬性。 class Person(private val username: String, private var age: Int){} 如果類不包含其他 ...
確定! 回上一頁