在OOP 裡,class 的繼承也是一個很重要的特色,跟Java 一樣,Kotlin 只能單一繼承,不能繼承多 ... super. 如果要在子類別訪問父類別呢? 就要使用super 這個關鍵字.
確定! 回上一頁