class Circle
{ final float PI=3.14f; private float radius; public void setRadius(float radius) {this.radius=radius;} public float getRadius() {return radius;} public float getArea() {return PI*radius*radius;}}本文共 258 字,大约阅读时间需要 1 分钟。
class Circle
{ final float PI=3.14f; private float radius; public void setRadius(float radius) {this.radius=radius;} public float getRadius() {return radius;} public float getArea() {return PI*radius*radius;}}转载于:https://www.cnblogs.com/Anei/p/7929225.html