How to differentiate member variable and function variable in kotlin

前端 未结 0 1990
死守一世寂寞
死守一世寂寞 2021-01-30 12:29
 class A{
    val name:String? // Member variable
    fun doSomeThing(name:String?)//name as function variable
    {name=name}
    }

In case of java we

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