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
What is the purpose of @doublerangefieldvalidator?
What is the purpose of '@keyproperty'?
What is lookupdispatchaction?
What is the purpose of @createifnull annotation annotation?
What are result types in struts?
What is Struts2?
How does struts work?
What are the steps used to setup dispatch action?
Explain about tiles?
List some struts tag libraries?
Explain about the process of functioning of the struts program?
How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?
What are the advantages of spring mvc over struts mvc?
Where should struts xml be placed?
What types of validations are available in xml based validation in struts2?