Every where I read that there are 3 access modifiers, public private and protected ( there is no modifier for friendly) but yesterday I read in one place that there is another one. 'private protected'. Can anybody tell me how it works? thanks, Derek.
Hi Derek ! There are 3 access modifiers public private protected The default access modifier(that is when you do not specify any access modifier) is friendly. Thats all about it. Never heard of anything you mentioned. Regards Danish Shaukat.
'private protected' was there in Java 1.0 but was later on removed. Access rights associated with it were quite complicated. I don't remember them now. But you need not worry about it as it is "eradicated" completely. HTH, Paul.