Conclusion

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

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
Download course materials from Github
Previous: Demo Next: Quiz: Implement Interfaces