File
Doc
Category
Size
Date
Package
Circle.java
API Doc
Example
439
Wed Apr 20 15:07:14 BST 2005
None
Circle
java.lang.Object
Shape
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
double
area
()
return PI*r*r;
public
double
circumference
()
return 2*PI*r;
public
double
getRadius
()
return r;
Java Code Source