//  Author:  Nancy Harris
//  Modification:  09/27/04
//  Assignment - Class Methods

/** Circle:  contains methods to calculate common values related to circles based
             on the value of the radius.
 */


public class Circle
{
 	// This variable is available to all methods.  It holds the radius of the 
	// circle object.  
	private double radius;
  
	/** Circle
	    input:  size of the radius of the circle
		 output: none
		 The value in the size parameter is stored in the attribute, radius 
	 */     
	public Circle(double size)
	{
		radius = size;
	}
	
	
	/** calcArea
		 input:  none
		 output: the calculated area of this circle based on radius
		 describe behavior here.
	 */
	public double calcArea()
	{
	 
		double area ;
		
		area = radius * radius * Math.PI ;		
		
		return area ;
	}
	
	/** calcCircumference
		 input:  none
		 output: the calculated circumference of this circle based on radius
		 describe behavior here.
	 */
	public double calcCircumference()
	{
		double circum ;
		
		circum = 2 * radius * Math.PI ;
				
		return circum ;
	
	}
		/** getRadius
		 input:  none
		 output: the radius of the circle
		 describe behavior here.
	 */
	public double getRadius()
	{
	 
		return radius;
	}

} // end Circle