The Artima Developer Community
Sponsored Link

Legacy Design Forum
Designing with Interfaces



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


Abstract classes in java

Posted by prakash jadhav on August 20, 2001 at 10:08 AM

If Interfaces are so useful in Java, why is it that you did not make use of pure virtual base classes in C++? Is there some difference between them which make the Java interface easier to use? Has Java, by disallowing multiple implementation inheritance, made you take the step of separating implementation from interface in a way you would not have done without being forced to? Also, if you now went back to C++ would you now make much more use of virtual base classes than you did before?


Sponsored Links

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