In my program i have a String called extensionTemp that gets a different file extension stored in it every time a loop is run. then i want to create a class based off of the value of the string extensionTemp. For example if it holds a txt value during an iteration of the loop, i want to name a class 'txt'. But how can i do that because if i say for example: int extensionTemp; then it will name the int extensionTemp, but i want to name it txt, the value of extensionTemp. Anyways i have no idea how to do this so any help is appreciated
> For example if it holds a txt value during an iteration of the loop, i want to name a class 'txt'
¿what about its members?
¿how are you planning to use instances of that class?