如果有時候你只是想要建立一個小型的物件,卻不想要宣告一個類別,Kotlin 允許你 ... b: B = object : A(3), B { override val y = 4 } fun main(args: Array<String>) ...
確定! 回上一頁