文件名称:TEST2
-
所属分类:
- 标签属性:
- 上传时间:2013-11-05
-
文件大小:2.91kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
创建一个桌子Table类,该类中有桌子名称,重量,桌面宽度,长度及桌子高度属性。
其中有:
构造函数初始化所有数据成员
Area() :计算桌面的面积
Display(): 利用toString方法,在屏幕上输出所有数据成员的值
ChangeWeight(int ):改变桌子重量的函数
在main()中,利用数组创建3个桌子对象,计算桌面的面积,改变桌子重量,并在屏幕上输出所有桌子数据成员的值。
-Creating a Table Table class that has a table name, weight, desktop width, length and height of the table attributes. Among them are: the constructor initializes all data members Area (): calculate the area of the desktop Display (): using the toString method, all the data on the screen, the output value of the member ChangeWeight (int): change the function of the weight tables in main (), the the use of an array of objects to create three tables to calculate the area of the desktop, changing table, weight, and output on the screen all the table data members.
其中有:
构造函数初始化所有数据成员
Area() :计算桌面的面积
Display(): 利用toString方法,在屏幕上输出所有数据成员的值
ChangeWeight(int ):改变桌子重量的函数
在main()中,利用数组创建3个桌子对象,计算桌面的面积,改变桌子重量,并在屏幕上输出所有桌子数据成员的值。
-Creating a Table Table class that has a table name, weight, desktop width, length and height of the table attributes. Among them are: the constructor initializes all data members Area (): calculate the area of the desktop Display (): using the toString method, all the data on the screen, the output value of the member ChangeWeight (int): change the function of the weight tables in main (), the the use of an array of objects to create three tables to calculate the area of the desktop, changing table, weight, and output on the screen all the table data members.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
第二题/.classpath
第二题/.project
第二题/.settings/org.eclipse.jdt.core.prefs
第二题/bin/test/Table.class
第二题/src/test/Table.java
第二题/bin/test
第二题/src/test
第二题/.settings
第二题/bin
第二题/src
第二题
第二题/.project
第二题/.settings/org.eclipse.jdt.core.prefs
第二题/bin/test/Table.class
第二题/src/test/Table.java
第二题/bin/test
第二题/src/test
第二题/.settings
第二题/bin
第二题/src
第二题
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
