What is the difference between overloading and overriding a
function?

Answer Posted / nishchita

In overloading 2 function should have different signature
but in overriding must have exactly same signature.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What access modifiers can be used for variables?

822


What is binary tree in java?

772


What is the public method modifier?

759


Difference between throw and throws?

879


What is a local, member and a class variable?

789


What is the difference between menuitem and checkboxmenu item?

1089


What is an example of a conditional statement?

790


What are the advantages of functions?

716


What is a substring of a string?

808


What is jit compiler in java?

803


Why arraylist is not synchronized in java example?

692


What is passing parameters in java?

740


Is assembly language a low level language?

705


What is the purpose of default constructor?

792


What are the 3 types of control structures?

729