I’m trying Pascal, and I’ve defined my own class, Block. I have an array[1..20, 1..20] of Block called PlayGrid, now I’m trying to fill it with Blocks.
This for loop:
for IterY := 1 to 20 do
for IterX := 1 to 20 do
//How do I put a new block instance in the PlayGrid?
end.
end.
Would you have to use New and Dispose to do this?
Thanks.
This is what I would do: