hw2
Class Ball

java.lang.Object
  extended by hw2.Ball

public class Ball
extends Object

This is a simple object that has a volume.


Constructor Summary
Ball(double volume)
          Constructor that creates a new ball object with the specified volume.
 
Method Summary
 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.