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
Implement stack operations with pointers with appropriate exception checks.
What is difference between n and endl in c++?
How do you flush a buffer in c++?
What can I use instead of namespace std?
What is an associative container in c++?
Can constructor be static in c++?
Can we get the value of ios format flags?
What is meaning of in c++?
Explain the difference between c & c++?
What is std :: flush?
What is null c++?
What is polymorphism in c++? Explain with an example?
If a header file is included twice by mistake in the program, will it give any error?
What is the use of 'this' pointer?
What is the difference between object-oriented programming and procedural programming?