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


Please Help Members By Posting Answers For Below Questions

What is used to display the intermediate result in an interceptor?

721


What configuration files are used in struts?

723


What are apache struts?

680


What is struts2 framework?

697


What is the purpose of @before annotation?

766


What's the purpose of execute method of action class?

688


What is struts?

745


in struts how to use hibernate with struts>

2008


Explain the components of struts?

728


How an actionform bean is created?

741


Name some of the features of struts2?

774


How you will display validation fail errors on jsp page?

715


What is struts-default package and what are it’s benefits?

774


What are different ways to create Action classes in Struts2?

785


What is the use of resourcebundle.properties file in Struts Validation framework?

800