一、 public/private/protected方法的访问范围:
<!--[if !supportLists]-->1、<!--[endif]-->private:只能由该类中的函数、其友元函数访问;不能被任何其他访问,该类对象也不能访问。
<!--[if !supportLists]-->2、<!--[endif]-->protected:可以被该类中函数、子类函数、友元函数访问;但不能被该类对象访问。
<!--[if !supportLists]-->3、<!--[endif]-->public: 可以被该类中函数、子类函数、友元函数访问,也能被该类对象访问。
<!--[if !supportLists]-->二、 类继承后方法属性变化: