Semester_2/OOP/Lab_04/Rectangle.java
public class Rectangle {

  private float width;
  private float length;

  public Rectangle() {
    this.width = 1.0f;
    this.length = 1.0f;
  }

  public Rectangle(float width, float length) {
    this.width = width;
    this.length = length;
  }

  public float getWidth() {
    return this.width;
  }

  public float getLength() {
    return this.length;
  }

  public float getArea() {
    return this.width * this.length;
  }

  public float getPerimeter() {
    return (this.width + this.length) * 2;
  }

  public void setWidth(float width) {
    this.width = width;
  }

  public void setLength(float length) {
    this.length = length;
  }

  public String toString() {
    return "Rectangle = [" + width + ", " + length + "]";
  }
}
