ps0
Class Ball

java.lang.Object
  extended by ps0.Ball

public class Ball
extends Object

This is a simple object that has a volume.


Constructor Summary
Constructor and Description
Ball(double volume)
          Constructor that creates a new ball object with the specified volume.
 
Method Summary
Modifier and Type Method and Description
 double getVolume()
          Returns the volume of the Ball.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ball

public Ball(double volume)
Constructor that creates a new ball object with the specified volume.

Parameters:
volume - Volume of the new object.
Method Detail

getVolume

public double getVolume()
Returns the volume of the Ball.

Returns:
the volume of the Ball.