package InterfaceDemo; /** * RectangularPrism.java * * * Created: Tue Feb 13 20:18:18 2001 * * @author Stuart C. Shapiro * The class of prisms with rectangular cross sections. */ public class RectangularPrism extends Prism{ /** The cross section of this rectangular prism. */ private RectangularCrossSection crossSection; /** * Constructs a rectangular prism. * @param cs The cross section of this rectangular prism. * @param h The height of this rectangular prism. * @param density The density of this rectangular prism. */ public RectangularPrism (RectangularCrossSection cs, double h, double density){ super(cs, h, density); } }// RectangularPrism