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 to build struts application in eclipse?

939


What is struts framework in java?

902


What is actionservlet?

952


Can you explain struts validator framework?

973


What is the use of interceptor?

922


What is the use of lookupdispatchaction?

972


What’s the difference between struts and turbine? What’s the difference between struts and espresso?

944


How many Action classes have been used in your project? Differences between struts 1.1 and 1.3?

2926


Can we use struts and spring together?

941


State the procedure for using forward attribute of link tag’s.

912


What is the flow of requests in struts based applications?

941


What is the purpose of dispatcher result type?

917


Can you explain struts.properties in struts2?

894


What is the use of namespace in action mapping in Struts2?

1010


How we can controlled duplicate form submission in struts?

894