Pentahedron -...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //****************************************************************************** // Pentahedron.java Author: Lewis/Loftus // // Represents a pyramid with a rectangle as the base. //****************************************************************************** / public class Pentahedron extends Rectangle { private double height; //--------------------------------------------------------------------------- // Sets up the pyramid by entering its width, height and length //--------------------------------------------------------------------------- public Pentahedron(double wid, double len, double hei) { super(wid, len); height = hei; } //--------------------------------------------------------------------------- // Returns the double value of the height //--------------------------------------------------------------------------- public double getHeight() { return height; } //--------------------------------------------------------------------------- // Returns the calculated value of the long face height...
View Full Document

This note was uploaded on 05/17/2011 for the course COP 3530 taught by Professor Davis during the Spring '08 term at University of Florida.

Page1 / 2

Pentahedron -...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online