
public class pgm06_03_01DefaultConstructor {

	public static void main(String[] args) {
		Rectangle1 rect1 = new Rectangle1();
		
		System.out.println("Rectangle 1");
		System.out.printf("length = %.2f width = %.2f area = %.3f hypoteneuse = %.3f\n",
				rect1.getLength(), rect1.getWidth(), rect1.area(), rect1.hypoteneuse()
				);
		
		rect1.setLength(3.0);
		rect1.setWidth(4.0);
		System.out.printf("length = %.2f width = %.2f area = %.3f hypoteneuse = %.3f\n",
				rect1.getLength(), rect1.getWidth(), rect1.area(), rect1.hypoteneuse()
				);

		rect1.setLength(5.67);
		rect1.setWidth(6.78);
		System.out.printf("length = %.2f width = %.2f area = %.3f hypoteneuse = %.3f\n",
				rect1.getLength(), rect1.getWidth(), rect1.area(), rect1.hypoteneuse()
				);
	}

}
