I am new to C++/stacko and want to principally:
It is not necessary to delete object1.
For every iteration of the loop, a new object object1 will be created (using default constructor) and destructed after the "cout" statement.