Difference between Overloading and Overriding?

Answers were Sorted based on User's Feedback



Difference between Overloading and Overriding?..

Answer / shoaib

1. Overloading doesn't block inheritence from the
superclass where as Overriding blocks inheritance.

2. Overloading -> If 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

3. Overloading is compile time binding, where as overriding is dynamic binding

4. In overloading function name are same but signatures
parameters are different .while in overriding function name are as well as argument are same in drive class as in super class.

Is This Answer Correct ?    9 Yes 2 No

Difference between Overloading and Overriding?..

Answer / 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

Difference between Overloading and Overriding?..

Answer / george ananth

Overloading(Early Binding):
-> having more than one method with the same name but different signature(argument type, return type, no of argument etc)

-> Compile time Polymorphism because in the compile time system required to find which method is called


Overriding(Late Binding):
-> If the function of base class is redefined in in the derived class is called overriding..The method name and signature of the base class must be same in the derived class (this is done using "virtual and override keyword or new keyword)

-> Run time Polymorphism because system doesn't know which method need to invoke at the compile time..

Is This Answer Correct ?    7 Yes 0 No

Difference between Overloading and Overriding?..

Answer / sandy

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.

Is This Answer Correct ?    7 Yes 2 No

Difference between Overloading and Overriding?..

Answer / suresh

Overloading is compile time binding, where as overriding is
dynamic binding....

Is This Answer Correct ?    6 Yes 1 No

Difference between Overloading and Overriding?..

Answer / 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

Difference between Overloading and Overriding?..

Answer / rajnish gupta

Overloading can be used with in same class as well as
inharitance, but overriding is used only in inharitance.

Is This Answer Correct ?    2 Yes 0 No

Difference between Overloading and Overriding?..

Answer / newuserforum

http://www.testskillshome.com/?p=758#comment-49

Is This Answer Correct ?    2 Yes 1 No

Difference between Overloading and Overriding?..

Answer / harendra kumar vishwakarma

over loading means using the diffrent operatores on
different types. for example,'+' is an overloaded operator
in most of the languages since'+' is the sign used for
additional of two integers as well as two floating point
numbers.

Is This Answer Correct ?    3 Yes 2 No

Difference between Overloading and Overriding?..

Answer / lakshmipathi

overloading is nothing but a funtion witn same name but
different arguments .......
overrinding is nothing but a funtion with same name and same
arguments...........
overloding involves with in same class...........
overriding involves in between super class and sub class....

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C++ General Interview Questions

program explaining feautures of c++

0 Answers   Satyam,


What are the characteristics of friend functions?

0 Answers  


What are the benefits of pointers?

0 Answers  


Why do we use structure in c++?

0 Answers  


Is python written in c or c++?

0 Answers  






Why do we need constructors in c++?

0 Answers  


Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.

0 Answers  


What is c++ and its uses?

0 Answers  


What are advantages and disadvantages of Design patterns?

7 Answers   IBM, Vodafone,


What compiler was used?

6 Answers   Intel,


how to connect with oracle 9i with server in socket program in c/c++

0 Answers   3i Infotech,


What are c++ redistributables?

0 Answers  


Categories