Java类成员的访问权限 类内部 本包 子类 外部包 public √ √ √ √ protected √ √ √ × default √ √ × × private √ × × × 转载于:https://www.cnblogs.com/peng-free/p/9155439.html