IS method overriding is Duplication of Methods?
Answer Posted / amol
No. In method overriding the behaviour of overrided method
is different. The subclass override only those methods,
which has different behaviour than superclass else alawys
use all the methods of superclass, which is better than
making a lot duplication by defining another class for same
methods of superclass.
| Is This Answer Correct ? | 29 Yes | 1 No |
Post New Answer View All Answers
Which collection is best for sorting in java?
how its run?
How do you detect memory leaks?
What is meant by javabeans?
What is difference between path and classpath in java?
Is string a wrapper class?
Does java support function overloading, pointers, structures, unions or linked lists?
What is the r character?
What are new features introduced with java 8 ?
How many types of equations are there?
Is main a function?
What is the meaning of variables in research?
What is a void method java?
What is the difference between yield() and sleep()?
What is the size of an array?