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
How can we write our own interceptor and map it for action?
What is the actionform?
What is purpose of execandwait interceptor?
What are the two types of validations supported by validator framework?
Which model components are supported by Struts?
What is request processor and how does it relates to action mapping?
What is the difference between empty default namespace and root namespace?
What are the Core classes of Struts Framework?
How many action classes can be used in struts application?
What are the sections into which a strut configuration file can be divided?
how to debug struts project in netbean ?
What do struts do?
What is controller in struts2?
What are the contents on web.xml in struts application ?
Can you explain struts.properties in struts2?