package lab8; public class Rectangle extends Shape { protected double width; protected double length; public double getWidth() { return width; } public void setWidth(double width) { this.width = width; } public double getLength() { return length; } public void setLength(double length) { this.length = length; } public Rectangle(String color, boolean filled, double width, double length) { super(color, filled); this.width = width; this.length = length; } public Rectangle() { } @Override public double getArea() { return length*width; } @Override public String toString() { return "Shape type: Rectangle . Area=" + getArea() ; } }