interface Shape {
public double getArea();
public double getPeri();
}
class Circle implements Shape{
private double ra;
private final static double PI = 3.14;
public Circle(double ra) {
this.ra = ra;
}
@Override
public double
用Java实现UML中的关系并调用函数验证结果
最新推荐文章于 2022-06-19 12:35:23 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)