© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
T. MailundIntroduction to Computational Thinkinghttps://doi.org/10.1007/978-1-4842-7077-6_12

12. Class Hierarchies and Inheritance

Thomas Mailund1  
(1)
Aarhus N, Denmark
 

Methods and polymorphism using them are a key idea in object-oriented programming, and you have much more to learn about them as you progress in your programming career. But in object orientation, there is an additional feature for inheriting implementations from one class into another. You can build hierarchies of types, where some types can reuse code from other types. It is essential in the software engineering underlying many systems, and we get a little taste of what it means in this ...

Get Introduction to Computational Thinking: Problem Solving, Algorithms, Data Structures, and More now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.