/********************************************************************* * Author: Eric Heim * Date Created: 7/5/2011 * Course: CS0007 * Description: Definition of the Rectangle class, which models the * geometric shape. *********************************************************************/ public class Rectangle { private double length; private double width; public double getWidth() { return width; } public double getLength() { return length; } public void setWidth(double inWidth) { width = inWidth; } public void setLength(double inLength) { length = inLength; } public double getArea() { return length * width; } public double getPerimeter() { return 2 * (length + width); } }