Class Circle

java.lang.Object
  |
  +--Circle

public class Circle
extends java.lang.Object

This class represents a Circle as a center/radius (Point,Line) pair.


Method Summary
 double area()
          Returns the area of the Circle.
 java.lang.String toString()
          Method used by Java to convert from Circle to string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString()
Method used by Java to convert from Circle to string. Useful when debugging.
Overrides:
toString in class java.lang.Object
Returns:
A String that is used when printing Circle.

area

public double area()
Returns the area of the Circle.
Returns:
A double that is the area of the Circle.