This is the end of the module, but not the final line. You’re just getting started.
The best way to solidify your understanding is by applying your knowledge. Once you feel comfortable with the basics, challenge yourself by building a small app or game. This will test your skills and be a rewarding experience to see your code come to life.
The key takeaway points of this lesson are:
Inheritance focuses on the “is-a” relationship. Interfaces introduce the concept of an “is” relationship.
Interfaces are a set of methods that a class must implement.
A class in Kotlin can implement as many interfaces as needed.
Interfaces can only define open members, meaning these members are accessible by any class that implements the interface.
In Kotlin, interfaces can have methods with an actual body of code called default implementation.
When you use the Interface type, you can only access methods and properties for that type, not the actual instance type.
See forum comments
This content was released on May 22 2024. The official support period is 6-months
from this date.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.