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 used to display the intermediate result in an interceptor?
What configuration files are used in struts?
What are apache struts?
What is struts2 framework?
What is the purpose of @before annotation?
What's the purpose of execute method of action class?
What is struts?
in struts how to use hibernate with struts>
Explain the components of struts?
How an actionform bean is created?
Name some of the features of struts2?
How you will display validation fail errors on jsp page?
What is struts-default package and what are it’s benefits?
What are different ways to create Action classes in Struts2?
What is the use of resourcebundle.properties file in Struts Validation framework?