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’s the difference between struts and turbine? What’s the difference between struts and espresso?
What is front controller in struts2?
What is the use of jsonvalidation?
What are the some useful annotations introduced in struts2?
What are the two scope types for formbeans?
Can we handle exceptions in Struts programmatically?
What are the core classes of struts framework? Explain
Explain about the future of struts?
What are the differences between http direct and http indirect?
What are the custom tags?
What is the purpose of '@keyproperty'?
What is the default suffix for Struts2 action URI and how can we change it?
Why do we need struts?
What is the differences between struts1 and struts2?
What is role of actionservlet?