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 design patterns are used in struts?
What does apache struts do?
How can we work with error tags?
Is struts action class singleton?
How can we upload files in Struts2 application?
What are interceptors in struts 2?
What are struts in java?
What is the purpose of @doublerangefieldvalidator annotation?
What is the difference between validation.xml and validator-rules.xml files in struts validation framework?
What is the difference between struts and spring? Explain
Can we have multiple struts config files ?
What is the purpose of form-be tag in struct-config.xml?
What is the purpose of @key annotation annotation?
How the flow of various requests happens in struts application?
Can explain about the validations and in your project where did u used the validations?