public class Square extends Polygon {
    
    public Square(double sideLength) {
        super(4,sideLength);
        System.out.println("square created");
    }
    
    public Square(double x, double y, double sideLength) {
        super(4, sideLength, x, y);
        System.out.println("square created at given position");
    }
    
    public double getArea() {
        return this.getSideLength() * this.getSideLength();
    }
    
    public String toString() {
        return "square " + super.toString();
    }
    
    public void printWhoAmI(int confidenceLevel) {
        if (confidenceLevel == 0) {
            System.out.println("I think I'm a square?");
        }
        else {
            System.out.println("I am a square!");
        }
    }
}
