1.派生类的定义 格式: class 派生类名:[继承方式]基类名 {派生类新增的成员; } 继承方式:private public protected 注意:派生类继承基类的成员函数,但不继承构造函数 2.派生……