C++ Overriding

tutorial and example
tutorial and example

C++ Function Overriding

When base and derive class both contain the same function name and calling function through derived object invokes derived class function called function overriding. Function overloading is achieved in inheritance.

C++ Function Overriding Example

Output: