Eric Dobbs wrote:
>
> 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.
>
That's right. But above, it says default or protected access for both
*class* and methods - implying the subclass is of the same package?
geir
--
Geir Magnusson Jr. [EMAIL PROTECTED]
System and Software Consulting
Developing for the web? See http://jakarta.apache.org/velocity/
You have a genius for suggesting things I've come a cropper with!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]