| Access Control Keyword | Where is the item available |
| public | everywhere |
| none | In the same class and package |
| private | In the same class |
| protected | In the same class, package, and subclass |
public class B extends A {
There are different ways of stating the relationship between A and B.