文件名称:2
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.13kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
编写一个程序,有一个汽车类vehicle,它具有一个需传递参数的构造函数,类中的数据成员车轮个数wheels和车重weight是保护类型;一个轿车类car是vehicle的公有派生类,其中包含载人数passenger;一个卡车类truck是vehicle的公有派生类,其中包含载人数passenger和载重量payload。每个类都有相关数据的输出方法。-The preparation of a program, there is a car-type vehicle, it has a need to pass the constructor parameters, type the data in the number of members of the wheels and car wheels is to protect the type of heavy weight a sedan-type car is a vehicle derived class public, which contains the capacity of passenger a truck is a truck-type vehicle of the public derived class, which includes passenger and load capacity of payload. Have relevant data for each category of output method.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
2.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.