I would like to ask something simple . I have created a class which will have a name. I want to create several of these classes , but the number of them is not exactly known. Every class has a unique name
What I want :
We have for example 3 classes, then their names should be:
Class #1
Class #2
Class #3.
I am thinking something like this:
for(int i = 0 ; i < numberofclasses ; i++ )
{
C[i] = new Class("Class # **(i+1)** " ); (where i+1 , is the number of class)
}
P.S. : any suggestions for better title are accepted
"Class # "+(i+1)for the class name.Classes that way?