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 difference between static and dynamic binding of functions?
What are the differences between new and malloc?
What does std mean in c++?
What is conditions when using boolean operators?
What do you understand by zombie objects in c++?
What is else syntax in c++?
What is a hash function c++?
Specify some guidelines that should be followed while overloading operators?
Is nan a c++?
What is the default access level?
Why is c++ still popular?
What is buffer and example?
How does com provide language transparency?
Is it possible to provide default values while overloading a binary operator?
Is c++ still being used?