Inheritance vocabulary C++
Subclass
Also known as the child or derived class. Class that inherits from another class.
Super class
Also known as the parent or base class. Class from which other classes inherit.
Overriding a function
If a child class has a function with the same function signature as one in the parent class, it will use the one defined within its own class.
Protected
Indicates that direct access to private data members is restricted to that class and any sub classes.
Has-a relationship
Refers to composition which is when a class ha a data member that is an object itself.
Is-a relationship
Refers to inheritance. If class A is derived from class B, we say A "is a" B.
Multiple inheritance
When a class directly inherits from multiple parent classes.
Single inheritance
When a class directly inherits from only one parent class.