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
Explain ioc concept?
What are the different approaches to represent an inheritance hierarchy?
What is ioc concept & explain it?
Why a client should be multithreading? Explain.
How can I scroll through list of pages like the search results in google?
What is the purpose of the finally clause of a try-catch-finally statement?
What are the types of scaling?
What is the purpose of the notifyall() method?
Why a component architecture for the java platform?
What is the difference between the session.update() method and the session.lock() method?
What is difference between object state and behavior?
What is mdb and what is the special feature of that?
Why are some of the class and element names counter-intuitive?
Explain RMI Architecture?
How database connectivity in XML is achieved?