On Thursday 05 February 2004 19:53, Leo Simons wrote:

> Security management
> can be turned of rather easily, and then clients can use the same
> package name to gain access.

Well... Users can do Reflection to access private members as well...

> > And in my case, I hardly ever have 'protected' in COP scenarios, SoC
> > quickly falls apart with inheritence.
>
> yep. I tend to overuse 'protected', then hunt for usages (esp.
> overriding methods) every once in a while. 

Just to remind you, the "modifier hierarchy" is;
public -> protected -> package -> private

So a protected method can be called by a class in the same package, it doesn't 
have to be a subclass, and your "user put things in same package" all over 
again... 


Niclas

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

Reply via email to