Written by the Fiveable Content Team • Last updated August 2025
Verified for the 2026 exam
Verified for the 2026 exam•Written by the Fiveable Content Team • Last updated August 2025
Definition
A quadrilateral class is a general class in object-oriented programming that represents a four-sided polygon. It serves as the parent class for more specific types of quadrilaterals, such as rectangles, squares, and parallelograms.
Parallelogram Class: The parallelogram class is derived from the quadrilateral class and represents a four-sided polygon with opposite sides being parallel.
Trapezoid Class: The trapezoid class is another child class of the quadrilateral class and represents a four-sided polygon with one pair of parallel sides.
Polygon Class: The polygon class is an even broader parent class that encompasses all closed figures with three or more straight sides.