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 size_t?
Is java a security risk?
What are the different types of sorting in java?
What is the difference between ArrayList and Vector? which one is better in Java
What is preflight request?
whatis Home interface and Remoteinterface? with example?
Why is the main method declared static?
Explain the significance of listiterator.
Which data type is a class in java?
What are the rules for naming an array?
What restrictions are placed on method overriding?
How do you clear a method in java?
Is singleton a bad practice?
Can a static method be final?
What is the use of singleton class?