explain method overridding method overloding with examples?
Answer Posted / manoj jain
overriding and overloading both are type polymorphism.
overloading:-more then one functions or constructors have
same name but different signature is called overloading.
this is also called compile time polymorphism or static
polymorphism.
overriding:-method in child class has same name as in
parent class(function name and signature will be same in
parent and child class)that is called overriding.
child class method hides parent class method it is also
called bynamic binding or runtime polymprphism
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
What is the difference in using Action interface and ActionSupport class for our action classes, which one you would prefer?
What is the purpose of struct-config.xml in struct2?
Give an example of validates method used to avoid errors.
How nested beans can be used in Struts applications?
Explain about the validation steps which have to be carried during validation of client-side address?
Why we use struts in java?
What is lookupdispatchaction?
Explain the components of struts?
What is java struts?
What is the difference between struts and spring? Explain
What is the purpose of form-beans tag in struct-config.xml?
What is action chaining ?
What are the different kinds of actions in struts?
What is DynaActionForm?
What is spring and struts in java?