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 |
Explain phantom read?
explain the flow of struts?
hi friends, i have done my BE(CSE)at 2011 then i have joined one company before they asked me 50k so i paid but now they telling no project here so we r going to close like that so now i need any job i have good knowledge in core java and j2ee(jsp,servlet,jdbc) so if u know any job pl help me
Can I run seam outside of jboss as?
Write a program on RMI and JDBC using StoredProcedure?
What is the difference between a static and a non-static inner class?
What are the thread-to-thread communcation?
whats is mean by connectionpooling
What is difference RMI registry and OSAgent?
What is Lock Based Protocol and what is its use?
What you mean by COM and DCOM?
Name the method to find, if a thread is active or not?