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 / ganga
using same methodname with different signatures is known as
overloading where as
changing the definition of the parentclass in chidclass is
known as overridding.
| Is This Answer Correct ? | 7 Yes | 9 No |
Post New Answer View All Answers
What is parsing and its types?
Can we override constructor?
What is classname class in java?
What is byte value?
What is a copy constructor in java?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
What is the synonym of procedure?
Explain about abstract classes in java?
Is ruby built on java?
What is private static in java?
What is listnode in java?
What is the difference between static method and instance method in Java?
Can you sort a list in java?
What data structures are used to perform recursion?
Explain the difference between abstraction and encapsulation.