public class Circle {
  /** The radius of the circle */
  private double radius = 1;

  /** The number of the objects created */
  private static int numberOfObjects = 0;

  /** Construct a circle with radius 1 */
  public Circle() {
    numberOfObjects++;
  }

  /** Construct a circle with a specified radius
   * @param newRadius - double, the radius of the new Circle object
   */
  public Circle(double newRadius) {
    radius = newRadius;
    numberOfObjects++;
  }

  /** compare radius with that of circle c
   * @param  c  the Circle object that the current Circle will be compared to
   * @return boolean  return result of "are the radii equal?"
   */
  public boolean equalRadius( Circle c ) {
    return this.radius == c.radius;
  }

  /** Return numberOfObjects 
   * @return  return value of static variable numberOfObjects
   */
  public static int getNumberOfObjects() {
    return numberOfObjects;
  }

  /** Return string representation of circle
   * @return String value that is a representation of the circle
   */
  public String toString() {
       return "Circle with radius " + radius; 
       } 
} //Circle
