package MyFigures;

public class CircleI implements IFigure{

    private Double radius;

    public CircleI(Double radius){
        this.radius = radius;
    }

    public Double getRadius() {
        return radius;
    }

    public void setRadius(Double radius) {
        this.radius = radius;
    }

    @Override
    public Double calculatePerimeter() {
        return 2 * radius * Math.PI;
    }

    @Override
    public Double calculateSpace() {
        return radius * Math.PI * Math.PI;
    }
}
