Class Square


public class Square extends Rectangle
A mutable class representing a square with integer valued base.
  • Constructor Details

    • Square

      public Square(int base)
      Creates a rectangle of given base and height.
      Parameters:
      base - the base of the rectangle.