Answer:
Step-by-step explanation:
The following class is written in Java. I created the entire Circle class with each of the methods and constructor as requested. I also created a tester class to create a circle object and call some of the methods. The output can be seen in the attached picture below for the tester class.
class Circle {
double radius;
public Circle(double radius) {
this.radius = radius;
}
public double getRadius() {
return radius;
}
public void resetRadius() {
radius = 0;
}
public double calculateArea() {
double square = Math.pow((Math.PI * radius), 2);
return square;
}
}