Inheritance in C++ Recall that inheritance is a means of specifying hierarchical relationships between types
C++ classes? can inherit both data and function members?? from other (parent) classes?
In addition, they inherit the "is a" relationship so that an object of a class? SortedList (which inherits from class? List) can be treated as an object of class? List in most cases
Terminology: "the child (or derived) class? inherits (or is derived from) the parent (or base) class?."
Creating or deriving a new class using another class as a base is called inheritance in C++. The new class created is called a Derived class and the old class used as a base is called a Base class in C++ inheritance terminology. The derived class will inherit all the features of the base class in C++ inheritance. The derived class can also add its own features, data etc., It can also override some of the features (functions) of the base class, if the function is declared as virtual in base class.