Definitions
Inheritance is the definition of one class as a more specific version of another class that has been previously defined. The newly defined class is called the derived (or sometimes child) class, and the previously defined class is called the base (or sometimes parent) class. In this book, we will use the terms base and derived. The derived class inherits all of the member variables and regular member functions from the base class. Inheritance is one of the primary organizing principles of object-oriented programming.
A regular member function is a member function that is not in any of the following categories:
constructor,
destructor,
assignment operator (i.e., operator =).
A member function in a derived class is said to override a ...
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.
Read now
Unlock full access