Ok so here is what I need to do:
I am reading in a CSV file and need to generate a new instance of a class for each line.
I then need to store the reference variable for the class in a List.
I am ok with most of this but how do I generate a class using a variable
something like this
string newClassName;
int a = 1; //counts number of loops
while (bufferedScanner.hasNextLine());
{
newClassName = SS + a;
LightningStorms newClassName = new LightningStorms();
a = a + 1;
}
I have left out a lot of extra code but its the setting up of the new class that I am interested in.
I am current learning and this is part of an assignment so want to figure most out for myself (there is a lot more to the question than this) but am stuck so any guidance would be very welcome.
Many thanks