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 a virtual class?

5 Answers   Cap Gemini, IBM, Infosys, Trinity Technologies,


Why do we use polymorphism?

0 Answers  


write a programe to calculate the simple intrest and compund intrest using by function overlading

0 Answers  


What is the difference between class and structure?

7 Answers  


What is object in oop?

0 Answers  






When is it necessary to use member-wise initialization list in C++?

2 Answers   Adobe,


What is encapsulation and abstraction? How are they implemented in C++?

0 Answers   Agilent, ZS Associates,


Which type does string inherit from?

0 Answers  


What is property in oops?

0 Answers  


What is meant by multiple inheritance?

0 Answers  


Program to check whether a word is in all capital letters

1 Answers  


What is a scope resolution operator?

5 Answers   HP, IBS,


Categories