Skip to Main Content
Hands-On Object-Oriented Programming with Kotlin
book

Hands-On Object-Oriented Programming with Kotlin

by Abid Khan, Igor Kucherenko
October 2018
Intermediate to advanced content levelIntermediate to advanced
370 pages
9h 15m
English
Packt Publishing
Content preview from Hands-On Object-Oriented Programming with Kotlin

Hierarchical multilevel inheritance

Hierarchical multilevel inheritance is where a parent class is derived from more than one class and one of the child classes is derived from another class. Take a look at the following diagram, where A is a parent class of D, and D is a parent class of E:

A classic example of this type of inheritance is the Shape class. Different shapes make up our everyday surroundings. All shapes are unique because of their structures. Some shapes, such as a circle and a cylinder, are quite similar, but other shapes, such as a square, an oval, and a triangle, are shapes that are completely different from each other. In ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Functional Programming in Kotlin

Functional Programming in Kotlin

Runar Bjarnason, Paul Chiusano, Marco Vermeulen
Learning Concurrency in Kotlin

Learning Concurrency in Kotlin

Miguel Angel Castiblanco Torres

Publisher Resources

ISBN: 9781789617726Supplemental Content