The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
September 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

�multiple implementation inheritance.�

Posted by Abha Thakur on September 14, 2000 at 6:09 PM

> You can't inherit a class from more than one class directly

Although class A extends B,C,D{} is a No-no in Java; you can use Inner Classes to do that. That is inherit class A from a class B;
and then have Inner Classes extend class C and D. In fact this is one of the reasons why Inner classes were thought of by Java designers. for more insights into this go to www.bruceeckel.com, look up the second edition of "Thinking in Java",Page 388, the whole section, its beautiful!!





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us