Difference between Overloading and Overriding?

Answer Posted / gaurav rawat

* in overloading function name are same but signatures
(argument) are different .
while in overriding function name are as well as argument
are same in drive class as in super class.
* for overloading can be done in one class but
for overriding there is necessary that at least two class
should be present.

Is This Answer Correct ?    101 Yes 24 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What kind of jobs can I get with c++?

827


How is c++ different from java?

787


Is c++ faster than c?

790


What is a base class?

816


List the merits and demerits of declaring a nested class in C++?

796


Why is c++ awesome?

817


What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor

913


What it is and how it might be called (2 methods).

861


What is new in c++?

866


What does n mean in c++?

847


Can recursive program be written in C++?

917


What are vtable and vptr?

876


Explain the volatile and mutable keywords.

838


Why c++ is not a pure oop language?

742


Can we run c program in turbo c++?

816