package jiekou1; public interface ShapePara { //定义常量PI final double PI=3.14; //定义抽象方法 //获得图形面积 double getArea(); //获得图形周长 double getCircumference(); } package jiekou1; public class Circle implements ShapePara { //定义成员变量 public double radius; public d…
//接口 ShapePara package d922B; public interface ShapePara { int getArea(); int getCircumference(); } //圆类 package d922B; public class Circle implements ShapePara { public double radius; private double x; protected double y; Circle(double r) { radius=r…