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 / george ananth

Overloading(Early Binding):
-> having more than one method with the same name but different signature(argument type, return type, no of argument etc)

-> Compile time Polymorphism because in the compile time system required to find which method is called


Overriding(Late Binding):
-> If the function of base class is redefined in in the derived class is called overriding..The method name and signature of the base class must be same in the derived class (this is done using "virtual and override keyword or new keyword)

-> Run time Polymorphism because system doesn't know which method need to invoke at the compile time..

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are advantages of using friend classes?

1017


What is a singleton class c++?

976


Mention the purpose of istream class?

1075


What are the syntactic rules to be avoid ambiguity in multiple inheritance?

1135


Can user-defined object be declared as static data member of another class?

987


Can malloc be used in c++?

1041


Is map sorted c++?

957


What is c++ code?

1078


What is the use of bit fields in structure declaration?

936


What is virtual destructor ans explain its use?

1084


Explain method of creating object in C++ ?

1041


What does new in c++ do?

971


How does a copy constructor differs from an overloaded assignment operator?

980


write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

2658


What is :: operator in c++?

1000