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
If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?
What is algorithm in c++ programming?
What is the best c++ book for beginners?
What is an object in c++?
What is the two main roles of operating system?
What is a lambda function c++?
What is fflush c++?
Can you explicitly call a destructor on a local variable?
Should the this pointer can be used in the constructor?
What is late binding c++?
Is c++ a good beginners programming language?
Is std :: string immutable?
Explain differences between alloc() and free()?
How the endl and setw manipulator works?
Evaulate: 22%5 a) 2 b) 4 c) 0