Class Circle

java.lang.Object
  |
  +--TwoDThings
        |
        +--Circle

public class Circle
extends TwoDThings

This class implements a Circle class.


Fields inherited from class TwoDThings
nObjects
 
Constructor Summary
Circle(int _radius)
          Constructor.
 
Method Summary
 int area()
          Calculates the area of an square.
 
Methods inherited from class TwoDThings
getType, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Circle

public Circle(int _radius)
Constructor. initialize length and width values of a Circle
Parameters:
_radius - int _radius of the circle
Method Detail

area

public int area()
Calculates the area of an square.
Returns:
area int area of the square