Chapter 6. Inheritance and Polymorphism
This chapter introduces the concepts and shows some examples of how to define inheritance relationships between C++ classes. Overriding methods, the virtual
keyword, and simple examples show how polymorphism works.
Simple Derivation | ||
Derivation with Polymorphism | ||
Derivation from an Abstract Base Class | ||
Inheritance Design | ||
Overloading, Hiding, and Overriding | ||
Constructors, Destructors, and Copy Assignment Operators | ||
Processing Command-Line Arguments |
Get An Introduction to Design Patterns in C++ with Qt 4 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.