文件名称:meiju
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 3kb
- 下载次数:
- 0次
- 提 供 者:
- 李**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
定义一个接口,他至少包含一个可以计算面积的成员的方法。然后,编写实现该接口的两个类:正方形类和圆类。接着编写一个具有泛型特点的类,要求利用这个类可以在控制台窗口中输出没肿图形的面积,而且这个类的类型变量所对应的实际类型可以是前面编写的正方形类和圆类。最后利用这个具有泛型特点的类在控制台窗口中分别输出给定变长的正方形的面积和给你个半径的圆的面积。-define a interface,including which containing at least a can of calculating the area of members of the methoda,Then, write to realize this interface of two classes: the square class and round types.Then write a with generics characteristics of classes,In this class can be required to exploit the console window in the area of the output didn t swollen graphics,And this kind of type variable corresponds to the actual type may be written in front of the class and round square class.Finally, using the generic type with the characteristics of the categories in the console window respectively output given variable-length square area and give you a radius of the area of a circle.
相关搜索: meiju
(系统自动生成,下载前可以参看下载内容)
下载文件列表
枚举5_3\.classpath
.......\.project
.......\bin\E_WEEKDAY.class
.......\...\J_Enum.class
.......\src\J_Enum.java
.......\bin
.......\src
枚举5_3
.......\.project
.......\bin\E_WEEKDAY.class
.......\...\J_Enum.class
.......\src\J_Enum.java
.......\bin
.......\src
枚举5_3