well, Java does't support inheritance but there is an alternative method to create inheritance in java which is known as "Interface".
Interface in Java can play a role to do similar things like multi-inheritance. However, the concepts of "Programming again interface" is much deeper and more important.
Actually, in C++ or any other OO languages, they all can also program against interface. The name called interface or not, the concepts are exactly the same. If you know what is PCI interface in your computer, that is a hardware interface. Your graphics card, your modern, ..., are all programmed against that interface.
Answered by
Romi
, an ibibo Master,
at
11:20 AM on July 08, 2008