What do the access modifiers in java do?
public visible to all other classes
protected visible to subclasses only
private only accessible by own class
public visible to all other classes
protected visible to subclasses only
private only accessible by own class