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
How to upload struts file?
What is the front controller in struts2?
When do I need “struts.jar” on my classpath?
How struts 2 validation works?
What configuration changes are required to use resource files in Struts?
Explain about the
Why actionservlet is singleton in struts?
What configurations are stored in struts configuration file ?
What is value stack?
What is the purpose of form-be tag in struct-config.xml?
How to override the default error message that can come during file uploading process?
What are the bundled validators?
Is struts mvc framework?
Can we have multiple struts config files in a single web app?
How do you find the struts version being used in a project?