文件名称:car
介绍说明--下载内容均来自于网络,请自行研究使用
编写一个程序,有一个汽车类vehicle,它具有一个需传递参数的构造函数,类中的数据成员车轮个数wheels 和车重weight 放在保护段中;小车类car 是它的派生类,其中包含载人数passenger_load;卡车类truck 是vehicle 的派生类,其中包含载人数passenger_load 和载重量payload。每个类都有相关数据的输出方式。-Write a program that has a auto vehicle, it has a need to pass parameters constructor, the data members of class number of wheels and car wheels, heavy weight on the protection section in 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 means.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
car\car.cpp
car
car