文件名称:TEST2
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2013-11-05
- 文件大小:
- 3kb
- 下载次数:
- 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
第二题