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 / senthamil kumaran

polymorphism can be divided into two tyes:-

Dynamic polymorphism or Run time polymorphism
Static polymorphism or Compile time polymorphism

Example for Static polymorphism
Method Overloading

Example for Dynamic polymorphism

Method Overriding



overloading: same method name but different argument list
is called as overloading

overriding:-same methodis redefined in the following
Derived classes with the same arugument list

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How long do struts last?

938


What is the difference between struts and spring? Explain

911


What are the classes used as part of struts framework ?

961


Explain integrate log4j in struts2 application?

1017


What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?

1013


How is declarative handling of exceptions done in struts ?

932


What is ognl?

1142


Is struts mvc framework?

931


What are the core classes of struts?

1042


What are the life cycle methods of interceptor?

974


What is a custom tag?

933


What is the forward action utilized for?

1093


What is front controller in struts2?

1086


What is the actionform?

1028


What are different Struts2 tags? How can we use them?

950