package circle;
public class CircleClass
{
// member variables
private double radius, circumference, area;
// constructor function
public CircleClass() { }
public CircleClass(double r) { setRadius(r); }
// accessors
public double getRadius() { return radius; }
public double getCircumference() { return circumference; }
public double getArea() { return area; }
// data modifiers
public void setRadius(double x)
{
radius = x;
circumference = 2 * Math.PI * radius;
area = Math.PI * radius * radius;
}
public void setCircumference(double x)
{
circumference = x;
radius = circumference / (2 * Math.PI);
area = Math.PI * radius * radius;
}
private void setArea(double x)
{
area = x;
radius = Math.sqrt(area / Math.PI);
circumference = 2 * Math.PI * radius;
}
}

While pursuing a Computer Science degree, I founded DaniWeb.com, an online community for developers and IT professionals. I coded the backend platform from the ground up and I also do all of the advertising sales and SEO. I'm a super-geeky programmer with a passion for Internet marketing.

The article starter has earned a lot of community kudos, and such articles offer a bounty for quality replies.