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

In this lesson, you’ll learn about two powerful object-oriented programming concepts in Kotlin: Inheritance and Polymorphism. These concepts are essential for creating organized, efficient, and flexible coding structures.

You will learn how to:

  • Explain the concept of inheritance and its role in object-oriented programming
  • Implement inheritance in Kotlin to create class hierarchies
  • Utilize polymorphism to create flexible and reusable code

With inheritance, you’ll establish relationships between classes, enabling the sharing of properties and methods. Then, you’ll explore polymorphism, a powerful technique that allows objects to behave differently depending on their inputs, which enhances code reusability and adaptability.

Dive in to discover how these concepts empower you to write cleaner, more maintainable Kotlin code.

See forum comments
Download course materials from Github
Previous: Classes & Objects Quiz Next: Instruction