close
//介面宣告 interface testInterface{ fun function1() } //介面實作 class testClass:testInterface{ override fun function1() { } } 使用方法: testClass().function1() 輸出結果: function1
全站熱搜
//介面宣告 interface testInterface{ fun function1() } //介面實作 class testClass:testInterface{ override fun function1() { } } 使用方法: testClass().function1() 輸出結果: function1
留言列表