Tag Archive for "access" tag

Understanding the protected access modifier and inheritance in Java

May 4th, 2008 by stevi | 3 comments

The Java Tutorial gives the standard definition of the protected access modifier: The protected modifier specifies that the member can only be accessed within its own package (as with package-private) and, in addition, by a subclass of its class in another package. But what does this mean in practice? I see a lot of confusion [...]