What is the difference between overloading and overriding a
function?
Answer Posted / ghanshyam dobariya
OVERLOADING: Declaration and definition are in the same
class i.e. a class in which they are defined.
OVERRIDING:Declaration is done at super class while actual
definition is define in sub class.
OVERLOADING: Any code mistake we make in defining it's code
, detected at compile time
OVERRIDING: Any code mistake we make in defining it's code
,detected at run time.
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?
Is boolean a wrapper class in java?
What is an immutable class?
What is classname class in java?
Which command from the jdk compiles a java program?
What are thread safe functions?
What are the basic concepts of OOPS in java?
What is a copy constructor in java?
What is the use of java?
What is the new line character?
How we can execute any code even before main method?
What is the difference between choice and list?
What are parsing rules?
What is sleep method?
What is data type in computer?