如果有時候你只是想要建立一個小型的物件,卻不想要宣告一個類別,Kotlin 允許你 ... open class A(x: Int) { open val y: Int = x } interface B val a1: A = object ...
確定! 回上一頁