Method Overriding

Total Post:47

Points:331
OOPS 
 2375  View(s)
Ratings:
Rate this:
What is the concept of method overriding in C++?
Please advice or any helpful link.
  1. Post:127

    Points:915
    Re: Method Overriding

    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

Answer