The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
July 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:

Derived Classes and Private members

Posted by Erik Buitenhuis on July 04, 2000 at 11:19 AM

> or am I misunderstanding this point in the first place?

yes!
private data and methods are inherited from the base class.
an instance of a subclass has all methods and data its superclass has (and probably more).

-erik






Replies:

Sponsored Links



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