Difference between Overloading and Overriding?
Answer Posted / janet
1. In overloading,there is a relation ship between methods
available in the same class where as in overridding,there
is relationship between a super class method and subclass
method.
2. overloading doesn't block inheritence from the
superclass where as overridding blocks inheritence.
3. in overloading,seperate methods share the same name
where as in overridding,subclass methods replaces the
superclass.
4.overloading must have different method signatures where
as overriding must have same signature.
| Is This Answer Correct ? | 482 Yes | 79 No |
Post New Answer View All Answers
Why is "using namespace std;" considered bad practice?
What is input operator in c++?
Define a pointer to a data member of the type pointer to pointer?
What is the use of pointer in c++ with example?
What is rvalue?
Can turbo c++ run c program?
What is the difference between set and map in c++?
What are the differences between the function prototype and the function defi-nition?
Can java be faster than c++?
What is the first name of c++?
When can I use a forward declaration?
What is the basic structure of a c++ program?
What is a singleton c++?
What is a catch statement?
Do the parentheses after the type name make a difference with new?