import java.awt.Color; public class Rectangle { /* Fields: length: double width: double color: Color */ private double length; private double width; private Color color; /* Constructors */ public Rectangle() { this.length = 0; this.width = 0; } public Rectangle(double w, double l) { this.length = l; this.width = w; } /* * Methods: */ public double getArea() { return this.length * this.width; } public double getPerimeter() { return 2 * (this.length + this.width); } public boolean judgeBeauty() { return false; } public void setLength(double len) { this.length = len; } public boolean entirelyContains(Rectangle that) { return this.length > that.length && this.width > that.width; } }