14-Nested and inner classes in Kotlin

June 12, 2020



This video shows you about nested class and inner class in Kotlin:
– Define a class with private properties, each is string with emoji character.
– Define a nested class and a method inside the nested class. You cannot access outer class’ properties from the nested class.
– Define the inner class inside the first class, try to access first class’ properties
– Always create instances when accessing to inner class.

SUBSCRIBE TO MY CHANNEL FOR MORE INTERESTING VIDEOS:

Twitter:
Facebook:

Nguồn: https://altcommtechniques.com

Xem thêm bài viết khác: https://altcommtechniques.com/game/

All Comments

  • Very well explained. There is kotlin anonymous inner classes also which is created using an object expression.

    Vipin Sharma June 12, 2020 1:44 pm Reply

Leave a Reply

Your email address will not be published. Required fields are marked *