Java chroniła prywatną publiczność

public      >> class, package, subclass (same pkg), subclass (diff pkg), world
protected   >> class, package, subclass (same pkg), subclass (diff pkg)
no modifier >> class, package, subclass (same pkg)
private     >> class
JavaBeast