FileDocCategorySizeDatePackage
Circle.javaAPI DocExample439Wed Apr 20 15:07:14 BST 2005None

Circle

public class Circle extends Shape

Fields Summary
public static final double
PI
protected double
r
Constructors Summary
public Circle(double r)

                              // Instance data
      this.r = r; 
Methods Summary
public doublearea()

 return PI*r*r; 
public doublecircumference()

 return 2*PI*r; 
public doublegetRadius()

 return r;