java访问权限控制小解 private,protect,friendly(即默认),publicprivate只能在本类中访问protect能在本类,同个包以及子类都能访问friendly本类及同个包进行访问public在本类,同个包,子类,不同包中都能访问