文件名称:Shape
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 3kb
- 下载次数:
- 0次
- 提 供 者:
- 胡*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
定义抽象类Shape,抽象方法为showArea(),求出面积并显示,定义矩形类Rectangle,正方形类Square,圆类 Circle,根据各自的属性,用showArea方法求出各自的面积,在main方法中构造3个对象,调用showArea方法-Define abstract class Shape, abstract methods showArea (), find the area and showed that define the rectangle class Rectangle, square type Square, round classes Circle, according to their properties, obtained by the respective area showArea method, constructed in the main method three objects, method calls showArea
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Shape\Circle.class
.....\Rectangle.class
.....\Shape.class
.....\ShapeArea.class
.....\ShapeArea.java
.....\Square.class
Shape
.....\Rectangle.class
.....\Shape.class
.....\ShapeArea.class
.....\ShapeArea.java
.....\Square.class
Shape