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...

What is the Difference between Overriding and overloading?

Answer Posted / prachee

overloading has same method but different types of
parameters, number of parameters.

overloading does not take return type to differentiate
overloaded method.

ex:
int add(int a, int b)
int add(float a , float b)
are overloaded methods

overriding comes with inheritance concept.
here parent and child both contains the same method. and
when execution takes place; child's method is called.

Is This Answer Correct ?    124 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name some of the keywords used in vb.net?

1075


What is jagged array in vb.net?

1144


What are all the differences between dispose and finalize()?

1172


Name some of the features of C# which are not present in VB.NET?

1033


What are the difference between dispose(), close(), exit(), end()?

957


Explain jagged array in vb.net?

1047


Explain the difference between .dll extension and .exe extension files?

1108


What do you mean by serialization and deserialization?

974


What is internal keyword in .net framework?

1094


Explain convert.tostrin?

1101


What is the role of new keyword?

1092


Why do you need Lock in Visual Basic?

1159


Define cls?

1066


What is option strict?

1170


What are the advantages of an assembly?

1132