
public class Rectangle4 {
	private double length;
	private double width;
	
	//Overloaded Constructors
	public Rectangle4(double l, double w) {
		System.out.println("\"double\" argument Constructor is running");
		length = l;
		width = w;
	}
	
	public Rectangle4(int l, int w) {
		System.out.println("\"int\" argument Constructor is running");
		length = l;
		width = w;
	}
	
	public Rectangle4() {
		System.out.println("No-Arg Constructor is running");
		length = 0.0;
		width = 0.0;
	}

	//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;
	}

}
