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 / shoaib

1. Overloading doesn't block inheritence from the
superclass where as Overriding blocks inheritance.

2. Overloading -> If two functions having same name and return type, but with different type and/or number of arguments. Overriding -> When a function of base class is re-defined in the derived class

3. Overloading is compile time binding, where as overriding is dynamic binding

4. In overloading function name are same but signatures
parameters are different .while in overriding function name are as well as argument are same in drive class as in super class.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a class definition?

1010


Why c++ does not have finally?

1020


Is map thread safe c++?

1022


Define the operators that can be used with a pointer.

993


What is the latest c++ standard?

1087


How can virtual functions in c++ be implemented?

1058


Explain pass by value and pass by reference.

1003


What is static in c++?

1006


How do you establish an is-a relationship?

1077


Explain deep copy and a shallow copy?

989


When you overload member functions, in what ways must they differ?

988


What is difference between class and structure in c++?

1132


What is c++ map?

1046


What do you mean by late binding?

1055


What is dev c++ used for?

976