修饰符同一个类同一个包下子类任意类private√default√√protected√√√public√√√√ 释义: private:只能自己使用 default:自己或者同一包下的类使用 protected:给子类使用 public:随便谁都能用