How to access the member of outer class from member function of inner class in kotlin. Consider the following code.
class A{
var name: String
class B{
fun show(){
print(name) //<----- here ide shows error. name is not accessible
}
}
}
I am writing this code in android studio. It is working when written in java but not when we write code in kotlin.