Introduction

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

Interfaces are a fundamental concept in Kotlin, they empower you to write code that’s flexible, adaptable, and easily reusable. Furthermore, they enable you to model behavior that isn’t connected to inheritance. They share similar behavior with something called an “Abstract Class.” You use them to share behavior between different subclasses. But in Kotlin, a class can inherit from just one parent class. However, classes can adopt multiple interfaces, allowing you to create your types to suit specific needs.

In this lesson, you’ll:

  • Describe the difference between Abstract Classes and Interfaces
  • Identify the importance of programming to abstractions versus coding to implementations
  • Explain the roles of Abstract Classes and Interfaces in writing software

Dive into the world of Interfaces, exploring their definition, their real-world applications and how they enable you to create code that conforms to specific contracts. By the end, you’ll have a solid introduction to Interfaces and how to leverage them to enhance your Android development skills.

See forum comments
Download course materials from Github
Previous: Inheritance & Polymorphism Quiz Next: Instruction