close
//介面宣告
interface testInterface{
    fun function1()
}
//介面實作
class testClass:testInterface{
    override fun function1() {

    }
}

使用方法:
testClass().function1()

輸出結果:
function1
arrow
arrow
    全站熱搜

    JBLin 發表在 痞客邦 留言(0) 人氣()