public class Ball extends java.lang.Object
| Constructor and Description |
|---|
Ball(double volume)
Constructor that creates a new ball object with the specified volume.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getVolume()
Returns the volume of the Ball.
|