作用域范围排序:public > protected >default >private protected与default的比较:protected在包中可见,在不同包中的子类中也可见,缺省只在当前包中可见。