I want to create ten objects within a loop, each object obviously should have a unique name
I am creating ten instances of TestObject
how do i create a unique name using the loop counter i eg TestObj1, TestObj2 etcCode:for (int i = 0; i < 10; i++) { TestObj UNIQUENAME = new TestObj(); }




Reply With Quote