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 / manu chaudhary

overloading- having different functions with same function_names but must have different signatures(parameters).

overriding- if a base class have a member function and its derived class also have a member function with same name and signature then when that same name function is called in the main function with the object of derived class then the function in the derived class is called that means the function with sam ename in the base class overrides, and this is known as function overriding.
If you have to call the function of the base class then you can call it within the scope of derived class function by using ::(scope resolution) operator.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are virtual constructors/destructors?

943


What is private public protected in c++?

981


Do vectors start at 0 c++?

979


What is a lambda function c++?

1031


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

1007


Where do I find the current c or c++ standard documents?

1026


What is dynamic and static typing?

1133


Explain the difference between struct and class in terms of access modifier.

1130


What is abstraction c++?

946


What is the advantage of c++ over c?

967


What is the difference between cin.read() and cin.getline()?

1015


What is stl containers in c++?

989


What is the difference between containment and delegation?

1243


Why do we use constructor?

1002


Why namespace is used in c++?

1011