Difference between Overloading and Overriding?

Answer Posted / pratimakiran

Overloading doesn't block Inheritence from the
superclass where as Overriding blocks is Inheritence.


Overloading method has different Parameters but same name
whereas Overriding is just the implementation of method
define Base Class.

Overloading Two or more functions having same name but
different methods i.e arguements or return types.

Overriding means use same name function name
with same parameters of the base class in the derived class.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define friend function.

568


What is singleton pattern in c++?

546


What are arithmetic operators?

537


What is the use of turbo c++?

551


What c++ is used for?

577






What is else if syntax?

675


What is the difference between while and do while loop?

554


Is it possible to have a recursive inline function in c++?

551


Explain dangling pointer.

674


What is c++ manipulator?

551


What is the maximum value of a unsigned char a) 255 b) 256 c) 128

631


How do you clear a map in c++?

567


Who created c++?

575


What is the most powerful coding language?

609


What is the difference between #define debug 0 and #undef debug?

639