四种访问权限

private只能在一个类中访问

default只能在一个包中访问

protecte在不同包子类

public所有都可以

posted @ 2017-08-04 14:19  超重语言  阅读(148)  评论(0编辑  收藏  举报