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
Do we have to use initialization list in spite of the assignment in constructors?
Define virtual constructor.
Explain differences between alloc() and free()?
Can notepad ++ run c++?
Can we get the value of ios format flags?
What are the various operations performed on stack?
What are static type checking?
What do you mean by translation unit?
What will happen if a pointer is deleted twice?
Why is null pointer used?
What is ifstream c++?
What is c++ array?
Explain explicit container.
What are features of c++?
What is an overflow error?