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

Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).

1060


Can class objects be passed as function arguments?

1014


Who calls main function?

1055


Why we use #include conio h in c++?

994


What is the cout in c++?

1009


What is #include ctype h in c++?

1123


int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}

1214


What are built-in functions? What is the syntax for the definition?

1029


What are the advantages of c++ over c?

1017


What are different types of loops in c++?

1076


What is function overriding in c++?

1022


What is class invariant in c++?

1172


What is a string example?

1024


What operators can you overload in c++?

997


What is a c++ map?

1307