Categories:
.NET (357)
C (330)
C++ (184)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (2)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Is there any other way that you can achieve inheritance in Java?
Is there any other way that you can achieve inheritance in Java?
✍: Guest
There are a couple of ways. As you know, the straight way is to "extends" and/or "implements". The other way is to get an instance of the class to achieve the inheritance. That means to make the supposed-super-class be a field member. When you use an instance of the class, actually you get every function available from this class, but you may lose the dynamic features of OOP
2012-08-29, 2629👍, 0💬
Popular Posts:
How To Add Margins to an Image? - PSP Tutorials - Fading Images to Background Colors with PSP In ord...
What are the different elements in Functions points? The different elements in function points are a...
What is the significance of Finalize method in .NET? .NET Garbage collector does almost all clean up...
What is the difference between CALL_FORM, NEW_FORM and OPEN_FORM? CALL_FORM: start a new form and pa...
How does multi-threading take place on a computer with a single CPU? The operating system's task sch...