Re: package private problem




If the class is 'protected' and your other classes
'extend' it, they can access the relevant attributes.

(Not entirely sure if that solution fits this problem, but
thought I'd throw the idea into the mix)


Thanks but it does not fit the problem at all.

And moreover class in java *cannot* be defined as protected
- only its fileds d can be.
only public, abstract & final are permitted


.