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
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.