I'm trying to do something I 'm not even sure it's possible , therefore I would like to seek some suggestions.
I want to create 20 objects and each object names is assigned according to their number given. All twenty objects will be instantiated from the class called myClass, and they will have name called object_0,object_1,object_2 and so on.. with the properties i defined in the class given below. Is that possible?? Thanks
Let say i want to implement these codes, click is just like a Main void to trigger these codes
private void button_Click(object sender, EventArgs e)
{
for (int i = 0; i < 20; i ++)
{
myClass object_i = new myClass();
}
}
public class myClass
{
public myClass
{
}
}