文件名称:Shape
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:2.63kb
-
已下载: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
Shape/Rectangle.class
Shape/Shape.class
Shape/ShapeArea.class
Shape/ShapeArea.java
Shape/Square.class
Shape
Shape/Rectangle.class
Shape/Shape.class
Shape/ShapeArea.class
Shape/ShapeArea.java
Shape/Square.class
Shape
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.