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

difference between checkbox vs radiobutton??

2982


described weak typing?

1028


Name some different types of control?

962


What would you do to remove microsoft visual basic name space?

947


Name the class which allows an element to be accessed using unique key?

1003


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

1094


Explain jit?

1092


what is intermediate language?

1034


What is the use of assembly?

999


What is the use of console application?

1111


Observations between vb.net and vc#.net?

1055


How does vb.net achieve polymorphism?

932


What are jagged arrays ?

1044


Explain the advantages of vb.net?

957


Explain namespace?

1108