/* * Soap.java * * Created on April 13, 2003, 2:19 PM */ /** A bar of soap. The bar has three dimensions: length (longest), * width (middle), and depth (smallest). The bar may be wrapped or * unwrapped. * */ public class Soap { /** Creates a new instance of SoapBar. Each bar has three measured dimensions. * As parameters, the dimensions are not in any particular order. * The parameter values should be positive. * Within the object, length must be the largest, height must be smallest. */ public Soap(double dimension1, double dimension2, double dimension3) { } /** Return the length (the longest dimension) */ //public double getLength() { /** Return the width (the second-longest dimension) //public double getWidth () { /** Return the height (the shortest dimension) //public double getHeight () { /** Mark the bar as wrapped. */ //public void setWrapped() { /** Mark the bar as not wrapped */ //public void setUnwrapped() { /** Return true if the bar is wrapped, false if it is not wrapped. */ //public boolean isWrapped() { //end class SoapBar }