Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Difference between Overloading and Overriding?

Answer Posted / kunal

Overloading - Two or more functions having same name but
different siganture(i.e arguements or return types) for eg.
we have a function named as area then
area();,float area();,area(float a,float b);,float area
(float a,float b);

Overriding - When a function of base class is re-defined in
the derived class.for eg.
base class
{
area(float a,float b);
}
derive class
{
float area();
}

Is This Answer Correct ?    42 Yes 109 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of 'this' pointer?

1221


Define whitespace in C++.

1152


What are namespaces in c++?

1039


What is virtual destructor? What is its use?

1014


If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?

1079


What is a hashmap c++?

1062


What is stream and its types in c++?

1003


Why do we need function?

1013


What is the keyword auto for?

1000


Write a program using display() function which takes two arguments.

1019


Explain Memory Allocation in C/C++ ?

1035


Can you overload the operator+ for short integers?

996


What is an adjust field format flag?

1075


Can we specify variable field width in a scanf() format string? If possible how?

1170


Describe linked list using C++ with an example.

1034