文件名称:pra
介绍说明--下载内容均来自于网络,请自行研究使用
////一、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