what is overloading and overriding?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
Answer / m.manirathinam
function overloading means function name same but different
parrameter
| Is This Answer Correct ? | 0 Yes | 4 No |
How oops is better than procedural?
What is overriding vs overloading?
What is byval and byref? What are differences between them?
what is function over loading?
What are the advantages of polymorphism?
when to use 'mutable' keyword and when to use 'const cast' in c++
Program to print 0 to 9 in cross order
What is overriding in oop?
What is namespace?
Program to check whether a word is in all capital letters
c++ is a purely oop concept?
Are polymorphisms mutations?