What is the difference between overloading and overriding a
function?

Answer Posted / karthik

Overload :Deals single class bluebrint method selection
by using diffent proto type
(static buinding)


Overriding :Deals sub and super class bluebrints method
selection by using same proto type
(Dynamic buinding)

Is This Answer Correct ?    16 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What about abstract classes in java?

829


What are locale settings?

731


What are the two categories of data types in the java programming language?

726


What is the primitive type short?

793


Why do you canvas?

779


What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?

929


What is array command?

806


can rmi and corba based applications interact ?

841


What are the advantages of java over cpp?

803


Is array size fixed in java?

741


What is hashset in java?

767


What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?

719


How do you start a thread?

767


what are abstract functions?

760


Is map sorted in java?

811