
public class Rectangle1 {
	private double length;
	private double width;
	
	//uses the default constructor
	
	//public methods
	public double area() {
		return length * width;
	}

	public double hypoteneuse() {
		return Math.sqrt((length * length) + (width * width));
	}
	
	//mutators (setters)
	public void setLength(double l) {
		length = l;
	}

	public void setWidth(double w) {
		width = w;
	}

	//accessors (getters)
	public double getLength() {
		return length;
	}

	public double getWidth() {
		return width;
	}
}
