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
Is struts action class singleton?
How are interceptors and servlet filters different?
What is action support class in struts2?
What is the purpose of @doublerangefieldvalidator annotation?
How many struts config file can be created in struts?
Which servlet does the struts framework use?
What is ValueStack and OGNL?
Explain the difference between plain-validator and field-validator in struts?
What are the core classes of the struts framework?
Can we have multiple struts config files ?
What are pull and push mvc architecture and which architecture does struts2 follow?
What types of validations are available in xml based validation in struts2?
What do you mean by actionmapping?
Are struts still used?
What is the actionform?