权限修饰符

  public protected (default) private
同一个类
同一个包
不同包子类
不同包非子类
原文地址:https://www.cnblogs.com/susexuexi011/p/13805616.html