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

List some struts tag libraries?

561


How long do struts last?

530


What are the ways in which duplicate form submission can occur?

506


What is the purpose of @before annotation?

585


What is front controller in struts?

567






How can duplicate form submission be handled in struts 2?

539


Lists the bundled validators in struts?

555


How can we integrate log4j in Struts2 application?

564


How to upload struts file?

604


What steps are required to for an application migration from Struts1 to Struts2?

608


Mark the differences between html tags and strut specific html tags.

589


What are the major differences between html tags and strut specific html tags?

517


What is http forward?

548


Can we have multiple struts config files in a single web app?

501


What should be the name of xml file used for validation in struts?

541