public class Circle {
private double radius;
public Circle(double radius) {
this.radius = radius;
}
public void setRadius(double radius) {
radius = radius;
}
public double getArea() {
return Math.PI * this.radius * this.radius;
}
}
After the following code is executed, what is the area returned by getArea()
?
Circle c = new Circle(1.0);
c.setRadius(2.0);
System.out.println(c.getArea());