一、派生类 派生类有基类所有的成员函数,成员变量 二、格式 class 派生类名 : public 基类名 { ............. }; 转载于:https://www.cnblogs.com/shenyuling/p/10017586.html