// Tyler Mi // A class representing a square public class Square extends Shape { private double length; // Constructs a Square with the given sidelength public Square(double length) { super("square"); this.length = length; } // Returns the area of this square public double area() { return length * length; } }