[3525] in java-interest
Re: protected is not?
daemon@ATHENA.MIT.EDU (Simon Spero)
Wed Nov 15 14:49:53 1995
Date: Wed, 15 Nov 1995 08:27:21 -0800 (PST)
From: Simon Spero <ses@tipper.oit.unc.edu>
To: Ken Arnold - Sun Labs <arnold@cocolat.East.Sun.COM>
cc: java-interest@webrunner.neato.org
In-Reply-To: <9511141804.AA04066@cocolat.East.Sun.COM>
On Tue, 14 Nov 1995, Ken Arnold - Sun Labs wrote:
> "protected" means that only extended class *and* other classes within
> the same package can access the identifier. Packages in the same class
> are considered to be, well, "friendly". This is one reason it is
> important to package your classes correctly
>
Is it correct to say:
Two classes A and B are in the same package IFF
the package declarations are the same AND
both classes were accessed by the same class loader AND
both classes are accessed from the same source.
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com