Difference between Overloading and Overriding?

Answer Posted / swetcha

Overloading - Two functions having same name and return
type, but with different type and/or number of arguments.
Overriding - When a function of base class is re-defined in
the derived class.

Is This Answer Correct ?    850 Yes 105 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Destructor in C++?

643


Why do we use classes in programming?

580


Explain overriding.

613


What do you mean by a template?

630


Explain one method to process an entire string as one unit?

941






Mention the storage classes in c++.

655


What is an undefined behavior and sequence points

573


What are advantages of c++?

573


How is objective c different from c++?

803


What sorting algorithm does c++ use?

606


What is #include sstream?

635


Is set c++?

583


What is the function of I/O library in C++ ?

670


Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

625


Can we change the basic meaning of an operator in c++?

661