文件名称:1
介绍说明--下载内容均来自于网络,请自行研究使用
编写一个程序,有一个汽车类vehicle,它具有一个需传递参数的构造函数,类中的数据成员车轮个数wheels 和车重weight 放在保护段中;小车类car 是它的派生类,其中包含载人数passenger_load;卡车类truck 是vehicle 的派生类,其中包含载人数passenger_load 和载重量payload。每个类都有相关数据的输出方式。-Write a program, there is a car class vehicle, it has a need to pass parameters to the constructor, the class number of the data members of the wheels and wheel weight on the protection of vehicle weight paragraph car class car is its derived classes, including manned several passenger_load truck vehicle class truck is a derived class, which contains several passenger_load manned and load payload. Each class has a data output mode.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1.cpp