Difference between Overloading and Overriding?
Answer Posted / ranjana chakraborty
Overloading Vs. Overriding
Overloading is nothing but static binding.
Overriding is dynamic binding which will be resolved at run-time.
Overloading deals with multiple methods in the same class with the same name but different signatures.
Overriding deals with two methods, one in a parent class and one in a child class, that have the same signature.
Overloading lets you define a similar operation in different ways for different data.
Overriding lets you define a similar operation in different ways for different object types.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
Why c++ is created?
What do you mean by vtable and vptr in c++?
When do you call copy constructors?
Please explain class & object in c++?
What is a set in c++?
Show the application of a dynamic array with the help of an example.
What does override mean in c++?
When is dynamic checking necessary?
When one must use recursion function? Mention what happens when recursion functions are declared inline?
What is meant by the term name mangling in c++?
which operator is used for performing an exponential operation a) > b) ^ c) none
Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?
What is a singleton c++?
How do I start a c++ project?