java中4种修饰符访问权限的区别

访问权限 本包 子类 其他包
public
protected x
default(缺省) x x
private x x x
原文地址:https://www.cnblogs.com/liaojie970/p/4806750.html