This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.