© J. Burton Browning and Bruce Sutherland 2020
J. B. Browning, B. SutherlandC++20 Recipeshttps://doi.org/10.1007/978-1-4842-5713-5_6

6. Inheritance

J. Burton Browning1  and Bruce Sutherland2
(1)
Bolivia, NC, USA
(2)
Carnegie, VIC, Australia
 

C++ allows you to build complex software applications in a number of ways. One of the most common is the object-oriented programming (OOP) paradigm. Classes in C++ are used to provide a blueprint for objects that contain your data and the operations that can be carried out on that data.

Inheritance takes this a step further by letting you construct complex hierarchies of classes. In the previous chapter, we ended with virtual functions, so this chapter will add to that discussion. As such, suffice to say the C++ language ...

Get C++20 Recipes: A Problem-Solution Approach 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.