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 Scott Bain on July 03, 2000 at 12:01 PM

I am learning Java and one concept is sticking in my brain, preventing others from entering properly.

It is this idea that a class derived from another class ('extends') does not inherit private members from the base class.

How can this be? How that the derived class function without some of the parts that made the base class function? Is it that the base class is designed such that the absense of private methods and properties will not inhibit the functionality of a derived class, or am I misunderstanding this point in the first place?

I appreciate any assistance that can me offered, and I promise to contribute here once I know anything useful.

Thanks!

-Scott Bain-



Replies:

Sponsored Links



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