Overriding the Definitions of Member Functions
Let’s discuss how to override the definitions of member functions.
We'll cover the following...
Overriding
One of the benefits of inheritance is being able to redefine the member functions of the superclass in the subclass. This is called overriding: The existing definition of the member function of the superclass is overridden by the subclass with the override
keyword.
Overridable functions are called virtual functions. Virtual ...