interface Shapes {
public double computeArea();
public double computeCircle();
}
class Cirlces implements Shapes {
private final double PI = 3.1415926;
double r;
public Circles(double r) {
this.r = r;
}
public double computeArea() {
return PI * r * r;
}
public double computeCircle() {
return PI * 2 * r;
}
}