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

Overloading: We can use same method name and different
arguments, number of arguments and type of arguments, and it
is also called as Compiletime Polymorphism, EarlyBinding and
StaticBinding.
Ex: int add(int a,int b);
int add(int a, float b);
float add(int a, float b, float c);


Overriding: We can use same method name and same arguments
to perfrom our own functionality, and it is also called as
Runtime Polymorphism,LateBinding and Dynamic Binding.
Ex: int add(int,int);
int add(int,int);

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Show the declaration for a static member variable.

992


Which programming language is best?

978


Explain how the virtual base class is different from the conventional base classes of the opps.

1164


What will happen if a pointer is deleted twice?

1172


What are the differences between malloc() and calloc()?

1173


What are the different types of comments allowed in c++?

987


Which software is used to run c++ program?

997


What is object in c++ wikipedia?

995


What is meaning of in c++?

1211


Does improper inheritance have a potential to wreck a project?

1136


What are the uses of c++ in the real world?

1030


Are strings immutable in c++?

1148


What operators can you overload in c++?

1037


What is virtual destructor ans explain its use?

1126


Does c++ have finally?

1025