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
Explain the static member function.
What is the difference between structure and class?
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
What is the difference between set and map in c++?
Explain function overloading and operator overloading.
Eplain extern keyword?
Can I run c program in turbo c++?
How does java differ from c and c++?
What is a friend function in c++?
why and when we can declar member fuction as a private in the class?
What do you mean by volatile and mutable keywords used in c++?
Explain the difference between overloading and overriding?
Does c++ support exception handling?
Can you declare an array without a size in c++?
Why cstdlib is used in c++?