what is overloading and overriding?

Answers were Sorted based on User's Feedback



what is overloading and overriding?..

Answer / nishanthi

Overriding - same method names with same arguments and same
return types associated in a class and its subclass.

Overloading - same method name with different arguments,
may or may not be same return type written in the same
class itself.

Is This Answer Correct ?    24 Yes 3 No

what is overloading and overriding?..

Answer / nishanthi

Overriding - same method names with same arguments and same
return types associated in a class and its subclass.

Overloading - same method name with different arguments,
may or may not be same return type written in the same
class itself.

Is This Answer Correct ?    17 Yes 4 No

what is overloading and overriding?..

Answer / pranita panchakshare

Overriding - same method names with same arguments and same
return types associated in a class and its subclass.

Overloading - same method name with different arguments,
may or may not be same return type written in the same
class itself.
i aggry with this answer

Is This Answer Correct ?    5 Yes 2 No

what is overloading and overriding?..

Answer / rupkkkkk

Overriding:- Both the methods are same with same arguments
and same return type with in its class and its subclass.


Overloading:- Both has same method but with different
arguments may or may not be same return type written in the
same class itself.

Is This Answer Correct ?    1 Yes 1 No

what is overloading and overriding?..

Answer / dinesh

OVERLOADING:Two methods are having same name and different arguments in same class
OVERRIDING: Two methods are having same name and same arguments also same return types in its class and sub class (from 1.5 on words co-varient return types also allowed this is applicable for only for object types not primitives)i.e some relation either parent to child or child to parent

Is This Answer Correct ?    1 Yes 1 No

what is overloading and overriding?..

Answer / mostafa zedan

Overriding - same method names with same arguments and same
return types associated in a class and its subclass.

Overloading - same method name with different arguments,
may or may not be same return type written in the same
class itself.

Is This Answer Correct ?    0 Yes 1 No

what is overloading and overriding?..

Answer / m.manirathinam

function overloading means function name same but different
parrameter

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More OOPS Interview Questions

what is multithreading in c++ , what is difference between multithreading and singlethreading.

4 Answers  


What is difference between pop and oop?

0 Answers  


write a program which best describes polymorphism in real world?

2 Answers   CTS, Infosys, NexGen,


why the argument is passed by reference to a copy constructor?example?

2 Answers  


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

0 Answers  


What is polymorphism oop?

0 Answers  


In which cases you use override and new base?

2 Answers  


what is the main difference between sizeof() operator in c and c++

3 Answers  


write a program for function overloading?

14 Answers   HCL, InfoCity, TATA,


Advantage and disadvantage of routing in telecom sector

0 Answers  


In what situation factory design patterns,DAO design patterns,singleton design patterns should be applied.?

2 Answers  


What is abstraction example?

0 Answers  


Categories