danpost wrote...
That explanation shows a lack of understanding in what is happening. If the Counter object is to be passed to the Mario object when the Mario object is created, then the Counter object must be created first. The first four lines above could be written as follows:
addObject(theCounter = new Counter(), 688, 29); addObject(new Mario(theCounter), 66, 244);