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
What are static methods?
What do you understand by casting in java language?
What is meant by object?
What is the difference between an array and an array list?
How do you clear an arraylist in java?
How will you initialize an Applet?
Is there any limitation of using inheritance?
What are the types of literals?
What is the difference between length and length() method in java?
can any body body expalin best definitions & best real time exaples for opps concepts.
Tell me are there implementations for sorting and searching in the java libarary?
Is passing by reference faster?
State some advantages of java?
What is the basic difference between string and stringbuffer object?
What is the purpose of void class?