public class Circle{private double r;public Circle(double r){this.r =r;}public double getLength(){return 2*Math.PI*r;}public double getArea(){return Math.PI*r*r;}}
时间: 2024-10-17 18:27:05
public class Circle{private double r;public Circle(double r){this.r =r;}public double getLength(){return 2*Math.PI*r;}public double getArea(){return Math.PI*r*r;}}