On Wednesday, June 20, 2001, at 09:21 PM, Geir Magnusson Jr. wrote:

> Daniel Rall wrote:
>>
>> Boiled down from a discussion w/ jvz on IRC:
>>
>> Classes implementing a given piece of functionality that don't
>> absolutely need to be public (such as those which are only used
>> internally by that functionality), should provide only a package or
>> derivitative-accessible API (default or protected access for both
>> class and methods).
>>
>
> Doesn't this mean that if the said class isn't declared public, you
> force the derived class to be placed in the package?

If I understand correctly, a protected method can be used by any
subclass, regardless of the package.  Whereas the default access
means that only subclasses in the same package can use those
methods.

-Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to