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 is function overloading c++?

1027


In a function declaration, what does extern mean?

1003


What is the need of a destructor? Explain with the help of an example.

962


What are maps in c++?

907


How long does it take to get good at leetcode?

1130


Why is the function main() special?

1050


How can an improvement in the quality of software be done by try/catch/throw?

1013


What is general format for a prototype?

985


What is a storage class? Mention the storage classes in c++.

984


What is the best it certification?

1075


What flag means?

900


Explain the uses oof nested class?

1102


Is c++ slower than c?

995


What is the use of cmath in c++?

1016


Can we use this pointer in a class specific, operator-overloading function for new operator?

1063