001/**
002 * This is part of HW0: Environment Setup and Java Introduction for CSE 331.
003 */
004package hw3;
005
006/**
007 * This is a simple object that has a volume.
008 */
009// You may not make Ball implement the Comparable interface.
010public class Ball {
011
012    private double volume;
013
014    /**
015     * Constructor that creates a new ball object with the specified volume.
016     * @param volume Volume of the new object.
017     */
018    public Ball(double volume) {
019        volume = volume;
020    }
021
022    /**
023     * Returns the volume of the Ball.
024     * @return the volume of the Ball.
025     */
026    public double getVolume() {
027        return 0;
028    }
029
030}