C++ · Structs and classes
Real programs keep many objects, like every rectangle in a floor plan, in one vector and loop over them.