
public class Rectangle3 {
	private double length;
	private double width;
	
	//Constructor with parameters
	public Rectangle3(double l, double w) {
		length = l;
		width = w;
	}
	
	//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;
	}
}
