Adding the value of a variable to the name of an object during the creation of the object
<p>I'm creating Car objects and I'm keeping count of the number of cars created with the variable 'carCounter.'  CarCounter starts at 0, and I want to name the Car objects car(carCounter) and increase the counter each time I create a car, so that the cars are named car0, car1, car2, etc...  How could I do that during the creation of the objects?</p>

<p>Something like Car() car(+carCounter+) = new Car();  ?</p>
