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

explain method overridding method overloding with examples?

Answer Posted / manoj jain

overriding and overloading both are type polymorphism.
overloading:-more then one functions or constructors have
same name but different signature is called overloading.
this is also called compile time polymorphism or static
polymorphism.

overriding:-method in child class has same name as in
parent class(function name and signature will be same in
parent and child class)that is called overriding.
child class method hides parent class method it is also
called bynamic binding or runtime polymprphism

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is struts action class singleton?

990


How are interceptors and servlet filters different?

974


What is action support class in struts2?

996


What is the purpose of @doublerangefieldvalidator annotation?

1025


How many struts config file can be created in struts?

889


Which servlet does the struts framework use?

972


What is ValueStack and OGNL?

1050


Explain the difference between plain-validator and field-validator in struts?

947


What are the core classes of the struts framework?

934


Can we have multiple struts config files ?

955


What are pull and push mvc architecture and which architecture does struts2 follow?

927


What types of validations are available in xml based validation in struts2?

1046


What do you mean by actionmapping?

960


Are struts still used?

929


What is the actionform?

1011