Kotlin the difference of nested class and inner class (Explanation with Code examples)
Difference l Explanation While nested class can not approach to the outer class's properties, inner class is able to approach them. l Code l explanation 'unresolved reference' has been occurred since the value named 'topic' is defined in outer class 'Seoul'. This value can not be used inside of the nested class 'Hongdae'. 1. nested class we call the class (which is in the other class ) nested cl..
2022.05.29