T
TazaTek
Hello,
I've seen some vague references on how to do this a factory, but not
in enough detail to create one, or even know if it's what I need.
Essentially, I'll have one of about 5 classes that could be referenced
as a string (from a file).
I'm not 100% sure of the relationship between the classes, but I
suspect that they will not be derived from a base class, but in this
case there is not a reason not to either, if it makes a difference.
Any help in pointing me in the direction of taking a string and
instantiating an object at runtime would be greatly helpful.
Thanks
Matt
I've seen some vague references on how to do this a factory, but not
in enough detail to create one, or even know if it's what I need.
Essentially, I'll have one of about 5 classes that could be referenced
as a string (from a file).
I'm not 100% sure of the relationship between the classes, but I
suspect that they will not be derived from a base class, but in this
case there is not a reason not to either, if it makes a difference.
Any help in pointing me in the direction of taking a string and
instantiating an object at runtime would be greatly helpful.
Thanks
Matt