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 |
If i learn Java, what kind of applications can i create that will help Banking, Retail, Hotel, Logistics industry.
What are the high-level thread states?
types of exceptions
which deployment descriptor element is used to configure the authentication method? a. auth-config b. login-config c. sec-config
Suppose there are 3 combo box. SELECT COUNTRY SELECT STATE SELECT CITY if i select any country from country conutrylistbox values in the state will get automatically inserted with database values>> THEN on selection of state city will be inserted in city combo box If you can help then please Help me...
Do we need to override service() method
What is RMI Registry?
6 Answers Siemens, United Software Solutions,
How to determine SGA site?
How can I scroll through list of pages like the search results in google?
when A client sent a request to the server to open facebook page and close the browser after this request .at that time the same user do login by using a different browser then that session id will exist or not for the same client??
whats is stored procedure,joins
What is RMI and what are the services in RMI?