Is a square classified as a rectangle, or is a rectangle classified as a square?

All squares are rectangles, but not all rectangles are squares. A rectangle is a 4 sided form with 4 right angles. A square has an additional requirement that all 4 sides must be equal in length. So the only rectangle that is a square is one with 4 equal sides.