第⑦章继承与派生 H voidinitvehicle(intin wheels, floatin weight) intet wheels floatget weight classcar publicvehicle ∥派生类car类的声明 private /新增私有数据成员第7章 继承与派生 voidinitvehicle(intin_wheels,floatin_weight); intget_wheels(); floatget_weight(); //... }; classcar:publicvehicle //派生类car类的声明 { private: //新增私有数据成员