public class Circle { private double radius = 1.0; // instance variable of the class // methods public Circle() // default constructor { } public Circle(double r) // constructor with parameter { setRadius(r); } public void setRadius(double r) { if (r <= 0) return; // error check radius = r; // set the member data } public double getRadius() { return radius; } public double findArea() { return (radius * radius * 3.14159); } public double findCircumference() { return (radius * 2 * 3.14159); } }