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.
010@SuppressWarnings("nullness")
011public class Ball {
012
013    private double volume;
014
015    /**
016     * Constructor that creates a new ball object with the specified volume.
017     * @param volume Volume of the new object.
018     */
019    public Ball(double volume) {
020        volume = volume;
021    }
022
023    /**
024     * Returns the volume of the Ball.
025     * @return the volume of the Ball.
026     */
027    public double getVolume() {
028        return 0;
029    }
030
031}