3.访问修饰符

来源:互联网 发布:手机上编程软件 编辑:程序博客网 时间:2024/06/05 20:11

1)仅对本类可见——private

2)对所有类可见——public

3)对本包和所有子类可见——protect

4)对本包可见——默认

0 0
原创粉丝点击