technique

2D array grid of objects

Store a rectangular grid of custom objects in a 2D array and visit every cell with two nested for-loops, using the row/column indices as constructor arguments.

Also called: grid of cell objects · 2D array of objects

What it is

How it works

Parameters & tuning

Where it’s been used

Variants & neighbours

Go deeper


Revision 1 · 1 source · Something wrong? Tell us.