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

Which software is best for coding?

0 Answers  


Define precondition and post-condition to a member function?

1 Answers  


Do class declarations end with a semicolon? Do class method definitions?

0 Answers  


Can constructor be private in c++?

0 Answers  


"How will you merge these two arrays? Write the program Array: A 1 18 22 43 Array: B 3 4 6 20 34 46 55 Output Array: C 1 3 4 6 18 20 22 34 43 46 55"

9 Answers   College School Exams Tests, HCL,






What is Name Decoration?

2 Answers   Lucent,


Explain the benefits of proper inheritance.

0 Answers  


What is algorithm in c++ programming?

0 Answers  


What is runtime errors c++?

0 Answers  


What is a constructor in c++ with example?

0 Answers  


program in c++ to input digits and print in words

1 Answers   Microsoft,


Describe private, protected and public?

0 Answers  


Categories