What is the value of the diameter when the following instance is created?
Circle c = new Circle(3.0);
public class Circle {
private double radius;
private double diameter;
public Circle(double r) {
radius = r;
diameter = 2 * r;
}
public double getDiameter() {
return diameter;
}
}