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
Is boolean a wrapper class in java?
What does it mean to be immutable?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
how can i use a nonsynchronized hashtable?
What about static nested classes in java?
Can you declare an interface method static?
How can the checkbox class be used to create a radio button?
What is the difference between heap and stack memory?
Explain Basics of OOP Language in java
How do you declare an array that will hold more than 64KB of data?
Explain the concept of proper inheritance?
What is the platform?
Write a program to find maximum and minimum number in array?
What is string manipulation?
What is difference between overloading and overriding in java?