Name: Anonymous 2013-10-22 1:47
Is there any way of creating (multiple) instances of a subclass (or any other standard object) based on a string that has been read in from a class. Currently I have found this can be done with a switch, or with reflection, but I am not allowed to use reflection.
I've tried finding a solution to this issue that doesn't involve a switch (its quite ugly with the switch) but all I've found is people suggesting to use reflection, which I cannot for this particular program.
I've tried finding a solution to this issue that doesn't involve a switch (its quite ugly with the switch) but all I've found is people suggesting to use reflection, which I cannot for this particular program.