The Artima Developer Community
Sponsored Link

C++ Abstract classes vs Java Interfaces

Advertisement

Advertisement

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.

Message:

C++ Abstract classes vs Java Interfaces

Posted by John Rivett-Carnac on 01 Dec 1998, 2:40 PM

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?




Replies:

Sponsored Links



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