private,protect,friendly(即默认),public private只能在本类中访问 protect能在本类,同个包以及子类都能访问 friendly本类及同个包进行访问 public在本类,同个包,子类,不同包中都能访问