Tutorial no. 5 - Polymorphism, Function Overriding by Khezer Mustafa

2016-02-04 1,102

Function overriding in C++ is a concept of placing function over another function
RULES
1. Inheritance should be there
2. Function overriding cannot be done within a class
3. Function that is redefined must have exactly the same declaration in both base and derived class, that means same name, same return type and same parameter list