1.private-->本类可以访问
2.friendly(默认)-->本类,同包可以访问
3.protected-->本类,同包,子类可以访问
4.public-->访问权限最大
posted on 2020-07-22 00:38  文种玉  阅读(123)  评论(0编辑  收藏  举报