public interface ThreeD { /** * Get the depth of this ThreeD object. * @return the depth of this ThreeD object */ double getDepth(); /** * Set the depth of this ThreeD object. * If the argument theDepth is <= 0.0, it is ignored and the * ThreeD object is unchanged. * @param theDepth the new depth of this ThreeD object; must be > 0.0 */ void setDepth( double theDepth ); /** * Get the volume of this ThreeD object. * @return the volume of this ThreeD object */ double getVolume(); }