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


Please Help Members By Posting Answers For Below Questions

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?

588


What is algorithm in c++ programming?

588


What is the best c++ book for beginners?

570


What is an object in c++?

609


What is the two main roles of operating system?

510






What is a lambda function c++?

550


What is fflush c++?

574


Can you explicitly call a destructor on a local variable?

600


Should the this pointer can be used in the constructor?

551


What is late binding c++?

538


Is c++ a good beginners programming language?

582


Is std :: string immutable?

559


Explain differences between alloc() and free()?

578


How the endl and setw manipulator works?

558


Evaulate: 22%5 a) 2 b) 4 c) 0

665