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

Evaluate !(1&&1||1&&0) a) Error b) False c) True

1257


When does a 'this' pointer get created?

1146


Write about the stack unwinding?

1115


What does std mean in c++?

1191


Is sorted c++?

1161


What is polymorphism in c++? Explain with an example?

1101


Define a constructor?

1106


Why are pointers used?

1049


Name the implicit member functions of a class.

1119


When should I use unitbuf flag?

1066


What is the full form of ios?

1136


how to access grid view row?

2283


What does new return if there is insufficient memory to make your new object?

1083


Is dev c++ a good compiler?

1009


When one must use recursion function? Mention what happens when recursion functions are declared inline?

1233