Answer Posted / jitender arora
Extending means adding new method definitions. Implementing
means satisfying the existing interface contract by writing
the proscribed method bodies.
When you derive a class from a base class we say the
derived subclass extends the base class. An interface can
also extend another interface. In contrast, when a class
provides the methods (possibly abstract) necessary to
conform to some interface we say that class implements the
interface. Extending a class is closely related to
implementing an interface. A new class can extend at most
one superclass, but it may implement several interfaces.
In interface may extend several other interfaces (though a
class implements an interface). You sometimes do this to
give you a short same to stand for the requirement
implementing half a dozen related interfaces.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What do you know about seam?
In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?
why static class in java
What is difference between object state and behavior?
What are the different algorithms used for clustering?
whats is statement and procedure
Why do threads block on i/o?
What is an abstract method?
Describe activation process?
What is prototype?
What is the relation between the infobus and rmi?
What are the different methods of identifying an object?
Name three subclasses of the component class?
Difference between DurableSubscription and non- DurableSubscription?
What method is invoked to cause an object to begin executing as a separate thread?