difference between overloading and overridding

Answers were Sorted based on User's Feedback



difference between overloading and overridding..

Answer / pramod

overloading :- There are two functions which have the
same name and they differ only either in their argument
number or argument type like myfunction(int a) and
myfunction(float a).

Overriding :- There are two functions with the eaxtly same
name,same type. One of these functions is in base class and
one will be in derived class

Is This Answer Correct ?    10 Yes 1 No

difference between overloading and overridding..

Answer / sanish joseph

In overloading functions will have same name but different
signatures(type of parameters,number of parameters etc..).
but in overloading functions must have same name and signature.

Is This Answer Correct ?    14 Yes 6 No

difference between overloading and overridding..

Answer / $rav$...

OVERLOADING:-Principle of overloading is achieved through
polymorphism .we can have any number of methods with the
same name but the difference in the signature(:parameters ).
OVERRIDING:-Principle of overriding is achieved through
inheritance.we can have any number of methods with same
name,parameters and signature but the rewriting of the code
of the super class method in the subclass is done and we
give the new functionality to that method of keeping its
signature as the same.
dynamic binding prevails in overriding.inheritance is
compulsory.
static binding prevails in overloading.

Is This Answer Correct ?    5 Yes 1 No

difference between overloading and overridding..

Answer / k.senthil arasur sathyamangala

overloading:Two function have same name and same return type
but different type of arguments used.


overriding:Two function have same name and same arguments
used but that function defined in a base class redefined in
a derived class

Is This Answer Correct ?    3 Yes 0 No

difference between overloading and overridding..

Answer / preeti

in overloading methods can have the same name but must
have different parameter lists i.e signature

while in overriding if you declare a field in a subclass
with the same name as one in the superclass, the superclass
field can only be accessed using super or the superclasses
type

Is This Answer Correct ?    6 Yes 4 No

difference between overloading and overridding..

Answer / manish chakravarti

In overloading functions will have same name but different
signatures(type of parameters,number of parameters etc..).
but in overloading functions must have same name and
signature.

Is This Answer Correct ?    2 Yes 0 No

difference between overloading and overridding..

Answer / priyanka agrawal

In overloading functions will have same name but different
parameters lists but in overridding functions must have
same name and same signature.

Is This Answer Correct ?    3 Yes 2 No

difference between overloading and overridding..

Answer / manish chakravarti

overloading:Two function have same name and same return type
but different type of arguments used.


overriding:Two function have same name and same arguments
used but that function defined in a base class redefined in
a derived class

Is This Answer Correct ?    1 Yes 0 No

difference between overloading and overridding..

Answer / poorna chandar rao

mainly overloading and overriding is used java polymorphisum
conbcept
overloading is method name same and method signature also
same it is called static polymorphisum when object is
created that decided by static polymorphisum

overriding is method name same but differtn arguments this
is called dynamic ploymaorphisum

Is This Answer Correct ?    1 Yes 3 No

difference between overloading and overridding..

Answer / parthi

plse explain clearly diff tell me?

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More OOPS Interview Questions

What is inheritance in simple words?

0 Answers  


What does it mean when someone says I oop?

0 Answers  


what is difference between thread and programme.

1 Answers   NCC,


ambiguity regulation of multiple inheritance with example.

1 Answers  


What is difference between multiple inheritance and multilevel inheritance?

0 Answers  






In OverLoading concept,Why they are not consider return value and why they are consider only parameters in method? For ex: public int Add(int a,int b){...} public String Add(int a,int b){...}

1 Answers  


What is object-oriented programming? Webopedia definition

0 Answers  


What is coupling in oop?

0 Answers  


diff between Abstract class Interfaces?

4 Answers  


What is abstraction in oop?

0 Answers  


What are the OOPS concepts?

106 Answers   A1 Technology, Bajaj, CTS, EDS, HP, Infosys, Intel, Microsoft, MNC, Persistent, PlanetSoft, ProConstructor, TCS, Virtusa, Wipro, YSoft Solutions,


Write on signed and unsigned integers and give three (3) examples each

1 Answers  


Categories