综上所述:protected强调的是子类,deafult强调的是本包,private强调的是本类,public强调的是开放性。 转载于:https://www.cnblogs.com/1020182600HENG/p/6672263.html