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 can we write our own interceptor and map it for action?

1053


What is the actionform?

1007


What is purpose of execandwait interceptor?

1083


What are the two types of validations supported by validator framework?

1017


Which model components are supported by Struts?

1017


What is request processor and how does it relates to action mapping?

1031


What is the difference between empty default namespace and root namespace?

1123


What are the Core classes of Struts Framework?

1007


How many action classes can be used in struts application?

977


What are the sections into which a strut configuration file can be divided?

1044


how to debug struts project in netbean ?

2350


What do struts do?

961


What is controller in struts2?

1125


What are the contents on web.xml in struts application ?

974


Can you explain struts.properties in struts2?

936