java 中的访问限制

简介

1)仅对本类可见--private
2) 对所有类可见--public
3) 对本包和所有子类可见--protected
4) 对本包可见--默认,不需要修饰符

Hope is a good thing,maybe the best of things,and no good thing ever dies.----------- Andy Dufresne
原文地址:https://www.cnblogs.com/eat-too-much/p/13392178.html