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