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
What does escaping a character mean?
How many bits is a char?
This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }
Can a final method be overloaded?
What is thread synchronization in java?
What is javac_g?
What is collection api?
What is io stream in java?
How can we pass argument to a function by reference instead of pass by value?
What is t in parametric equations?
What are the legal parameters?
Write a method that will remove given character from the string?
What is a databasemetadata?
What type of value does sizeof return?
Can we have a try block without catch block?