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

Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.

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

K
Khezer Mustafa

4 Views • Feb 04, 2016

Description

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