Java 编写一个矩形类实现shape接口。 编写一个圆类实现shape接口。 编写一个主类用来测

日期:2014-12-04 20:25:22 人气:2

Java 编写一个矩形类实现shape接口。 编写一个圆类实现shape接口。 编写一个主类用来测

/** * * @author Administrator * 图形接口 * */ public interface shape { // 得到面积 public double getArea (int radiusOrLength, int width); // 得到周长 public double getPerimeter(int radiusOrLength, int width); } /**
    A+
热门评论