Kotlin open class的問題,透過圖書和論文來找解法和答案更準確安心。 我們找到下列懶人包和總整理

另外網站Kotlin學習系列(二):繼承_renxhui也說明:如果子類有主建構函式,那麼父類需要在主建構函式中立即初始化```kotlin open class Base(a :Int) { open fun text(){ }.

最後網站What is Open Class in Android Kotlin? - Android4Dev則補充:In Kotlin, the classes, the variables, and the functions are final by default. They can't inherit from other classes. So to make inherit from other classes we ...

接下來讓我們看這些論文和書籍都說些什麼吧:

除了Kotlin open class,大家也想知道這些: