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 ...
12. Class Hierarchies and Inheritance
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.