First page Back Continue Last page Graphics
Limiting Access for Class Members
Each class member can have an access keyword of public, private, protected, or no keyword at all
public and private access is similar to that for C++
protected members can be accessed anywhere in the class and in any subclass and within the package scope
- so, protected instance variables are a bad idea
Members without any access keyword are given package scope by default