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
what is static import in java? Explain
Which collection allows duplicate values in java?
What is 32 bit float?
What do you mean by formatting?
Is empty in java?
How will you reverse a singly-link list?
What is difference between c++ and java ?
Define linked list and its features with signature?
How can a gui component handle its own events?
What is the abstract class?
What is meant by main method?
Can a main method be declared final?
What are the advantages of java over cpp?
Is math an abstract class in java?
What is scope & storage allocation of static, local and register variables? Explain with an example.