Difference between Overloading and Overriding?

Answer Posted / mansi shah

Overloading is evaluaated at compile time whereas
Overriding is evaluated at Run Time.

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

Overloading does not interfere Base Class whereas
Overriding method must require the method which is declared
in Base Class.

Overloading can be defined in one class,in short term it
does not require separate Base Class to implement the
method,whereas for implementing method overriding the Base
class is necessary..

Is This Answer Correct ?    21 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is C++ case sensitive a) False b) Depends on implementation c) True

616


what you know about c++?

667


Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

2441


Which bitwise operator is used to check whether a particular bit is on or off?

594


What is the exit function in c++?

544






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

679


What is virtual destructor? What is its use?

579


How can you link a c program with a c function?

569


What are virtual constructors/destructors?

578


How is computer programming useful in real life?

596


What are arithmetic operators?

544


When you overload member functions, in what ways must they differ?

592


What is the difference between strcpy() and strncpy()?

612


Specify different types of decision control statements?

360


What is c++ 11 and c++ 14?

593