Is there an elegant way to use a class's private variable's method in kotlin?

后端 未结 0 1902
陌清茗
陌清茗 2020-12-07 03:36

I\'m building a class structure like the following:

class A {
    fun methodA() {}
}

class B(private val a: A) {
    fun methodB() {}
    //fun methodA() { a         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题