除了在Kotlin Object 範例. 提到全域物件的用法 ... class MyClass { companion object Factory { var number = 0 fun create(): MyClass = MyClass() } }.
確定! 回上一頁