What is the difference between overloading and overriding a
function?
Answer Posted / suganthi
Over Loading : when two or methods share the same name but
paramater declaration are diffierent with in a class.
(ex:Compile time polymorpism)
Over ridding: when two or methods share the same name but
paramater declaration are also same in different classes.
(ex:run time polymorpism)
Is This Answer Correct ? | 17 Yes | 3 No |
Post New Answer View All Answers
Difference between comparator and comparable in java?
How destructors are defined in java?
What is a protected class in java?
What if static is removed from main method?
What is output buffer?
What is the numeric promotion?
What is the concept of multithreading?
What is the locale class in java programming?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
What is a variable analysis?
How can we make copy of a java object?
What is size_t?
If two threads have same priority which thread will be executed first ?
Can you call one constructor from another if a class has multiple constructors?
what is the difference between a threads start() and run() methods? : Java thread