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

Explain the difference between static and dynamic binding of functions?

557


What are the differences between new and malloc?

633


What does std mean in c++?

583


What is conditions when using boolean operators?

607


What do you understand by zombie objects in c++?

622






What is else syntax in c++?

642


What is a hash function c++?

556


Specify some guidelines that should be followed while overloading operators?

625


Is nan a c++?

615


What is the default access level?

628


Why is c++ still popular?

589


What is buffer and example?

527


How does com provide language transparency?

607


Is it possible to provide default values while overloading a binary operator?

768


Is c++ still being used?

567