Class CheckedCircle

java.lang.Object
  |
  +--CheckedCircle

public class CheckedCircle
extends java.lang.Object

A Circle with Access-Modifiers and a checked exception.
see IllegalRadiusException


Field Summary
static double PI
           
protected  double r
           
 
Constructor Summary
CheckedCircle(double r)
           
 
Method Summary
 double area()
           
protected  void checkRadius(double radius)
           
 double circumference()
           
 double getRadius()
           
static void main(java.lang.String[] args)
           
 void setRadius(double r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PI

public static final double PI

r

protected double r
Constructor Detail

CheckedCircle

public CheckedCircle(double r)
              throws IllegalRadiusException
Method Detail

checkRadius

protected void checkRadius(double radius)
                    throws IllegalRadiusException

getRadius

public double getRadius()

setRadius

public void setRadius(double r)
               throws IllegalRadiusException

area

public double area()

circumference

public double circumference()

main

public static void main(java.lang.String[] args)