difference of inheritance and interface
Answers were Sorted based on User's Feedback
Answer / anandhi
INHERITANCE:diriving new class from existing class...
types: single ,multiple,....etc.
its nt support multilevel inhertance...
so we can use interface....
| Is This Answer Correct ? | 7 Yes | 2 No |
Answer / rahul
The most important technical distinction between creating a
derived class and implementing an interface is that a
derived class can only inherit from one base class, but a
class can implement any number of interfaces.
From a design standpoint, think of inheritance as expressing
a specialization hierarchy. If WebSalesOrder "is a" special
kind of SalesOrder, you might consider making it a derived
class.
However, you need to be very careful that you don't use
inheritance when the specialization that distinguishes a
derived class from a base class is a feature that other
classes will also need to support. For adding those kinds of
features or capabilities to a class, implementing interfaces
will give you much greater flexibility.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / prabha
interface can extend only once but implement more
inheritance can extend more time
| Is This Answer Correct ? | 0 Yes | 3 No |
What you mean by COM and DCOM?
Difference Between java & javax
5 Answers Sun Microsystems, Wipro,
What state a thread enters, When it blocks on I/O?
Dear freinds... I want to know how to write self mapping for a table using hibernate?
What is codebase in applet?
How messaging services are done, before release of JMS?
What modifiers may be used with an interface declaration?
JMS based on what technology?
which is the better collection class if the requirement is only displaying the data
what are JSP tags? what is difference between include action and directory?
What is TL and its use?
What is diffennce between AWT & SWING?