Home > DeveloperSection > Forums > Method Overriding
Pooja Malohtra
Pooja Malohtra

Total Post:47

Posted on    October-20-2010 7:12 AM


 1 Reply(s)
 1448  View(s)
Rate this:
What is the concept of method overriding in C++?
Please advice or any helpful link.

Uttam Misra

Total Post:124

Posted on    October-21-2010 3:17 AM

Overriding - Same method name with same arguments and same return type associated in a class and its subclass.
Example for Overriding

Class X
Virtual void Add(int a, int b)

Class Y:X
public override void Add(int a, int b)

Modified On Oct-21-2010 03:19:08 AM

Don't want to miss updates? Please click the below button!

Follow MindStick