public class Circle
extends java.lang.Object
Constructor and Description |
---|
Circle(double theRadius)
Constructs a Circle with the given radius
|
Modifier and Type | Method and Description |
---|---|
double |
area()
Gets the area of this circle
|
double |
getRadius()
Gets the radius of this Circle.
|
void |
setRadius(int newRadius)
Sets a new radius for this Circle
|
java.lang.String |
toString() |
public Circle(double theRadius)
theRadius
- the radius of this Circlepublic double area()
public double getRadius()
public void setRadius(int newRadius)
newRadius
- the new radius of this Circlepublic java.lang.String toString()
toString
in class java.lang.Object