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
In struts, how can we access java beans and their properties?
In which method of action class the business logic is executed?
What is apache struts vulnerability?
How to upload struts file?
What is the purpose of '@keyproperty'?
Are the struts tags xhtml compliant ?
Is struts 1 still supported?
Why was reload removed from struts (since 1.1)?
What is struts2 namespace?
What is the default suffix for Struts2 action URI and how can we change it?
What are the Core classes of Struts Framework?
Describe the mvc on struts?
How to override the default error message that can come during file uploading process?
What is the purpose of constant tag in struts.xml?
What do you mean by action errors and what are the results they force?