import java.awt.*;

/** An instance is a square */ 
public class Square extends Rhombus {

    /** Constructor: a square at (xp, yp) of side length l */
    public Square(int xp, int yp, int l) {
       super(xp, yp, l, 0);
    }
    
    /** Draw this square using Graphics g */
    public void drawShape(Graphics g) {
       g.drawRect(x, y, l1, l2);
    }
        
    /** = description of this square */
    public String toString() {
       return "square, pt (" + x + ", " + y + "), side " + l1;
    }

}
