文件名称:1
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:593byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
编写一个程序,有一个汽车类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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.