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

i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<<k; } //please comment on the output

0 Answers  


What is debug class?what is trace class? What differences are between them? With examples.

0 Answers  


Difference between vector and array

2 Answers  


Why do we use class in oops?

0 Answers  


What is oop in simple words?

1 Answers  






What is object in oop with example?

0 Answers  


Write an operator overloading program to write S3+=S2.

2 Answers  


What is encapsulation process?

0 Answers  


What is late bound function call and early bound function call? Differentiate.

2 Answers   Ness Technologies,


What is difference between oop and pop?

0 Answers  


what is costructor?

1 Answers  


What is conditional Compilation?

3 Answers   emc2, HCL,


Categories