Difference between overloading and Overriding. <Giving a
confusing example to test the concept.>
(also asked in PA Consultancy Group,iflex,Value
chain,IBM,CTS,Accenture, Tarang>

Answer Posted / esha prasad

Over loading is polymorphism implementation in same class,
where two or more methods can share same name differing in
parameters passed.
Overriding is polymorphism implementation in different
classes having parent child relationship and the
funtionality in parent class is over shadowed by the
funtionality in subclass.

Is This Answer Correct ?    72 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is static import in java? Explain

766


Which collection allows duplicate values in java?

725


What is 32 bit float?

740


What do you mean by formatting?

727


Is empty in java?

780


How will you reverse a singly-link list?

760


What is difference between c++ and java ?

856


Define linked list and its features with signature?

763


How can a gui component handle its own events?

804


What is the abstract class?

760


What is meant by main method?

775


Can a main method be declared final?

787


What are the advantages of java over cpp?

792


Is math an abstract class in java?

712


What is scope & storage allocation of static, local and register variables? Explain with an example.

781