文件名称:pra
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:600byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
////一、1)编写一个桌子类(Class Table),该类有长、宽、高、颜色、编号、拥有者六个属性,
//其中长、宽、高是private属性,编号、颜色、拥有者是public属性。
//2)用该类实例化两个具体对象table1和table2。table1的长为2米,宽1.5米,高1米,
//编号为001,颜色为黄色,拥有者为张三。table2的长为3米,宽2米,高1.5米,编号为002,
//颜色为蓝色,拥有者为李四。
-////A, 1) preparation of a table class (Class Table), the class has a long, width, height, color, number, and the owner of six properties,// which the long, wide, high is private property, number The color, the owner of public property.// 2) with the class instantiation object table1 and table2. The table1 long as two meters, 1.5 meters wide, one meter high,// No. 001, the color is yellow, owned by Joe Smith. The table2 long as three meters, two meters wide, 1.5 meters high, No. 002,// color is blue, owned by John Doe.
//其中长、宽、高是private属性,编号、颜色、拥有者是public属性。
//2)用该类实例化两个具体对象table1和table2。table1的长为2米,宽1.5米,高1米,
//编号为001,颜色为黄色,拥有者为张三。table2的长为3米,宽2米,高1.5米,编号为002,
//颜色为蓝色,拥有者为李四。
-////A, 1) preparation of a table class (Class Table), the class has a long, width, height, color, number, and the owner of six properties,// which the long, wide, high is private property, number The color, the owner of public property.// 2) with the class instantiation object table1 and table2. The table1 long as two meters, 1.5 meters wide, one meter high,// No. 001, the color is yellow, owned by Joe Smith. The table2 long as three meters, two meters wide, 1.5 meters high, No. 002,// color is blue, owned by John Doe.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
pra.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.