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 long do struts last?
What is the difference between struts and spring? Explain
What are the classes used as part of struts framework ?
Explain integrate log4j in struts2 application?
What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?
How is declarative handling of exceptions done in struts ?
What is ognl?
Is struts mvc framework?
What are the core classes of struts?
What are the life cycle methods of interceptor?
What is a custom tag?
What is the forward action utilized for?
What is front controller in struts2?
What is the actionform?
What are different Struts2 tags? How can we use them?