Hi guys,
If I want to load an object, or a method from an object... but I don't know
what it is can I use the value in the string as the method to run???
For example, I get a string from a user that is 'triangle' stored in temp.
Now I know that there is a class called triangle can I do something like
temp variable = new temp();
Where temp is obviously the string value and not actually the object temp
itself.
Ignore all the security problems here, because it is not going to be used in
any prog... but I need to be able to do it this way for a testing driver.
Thanks heaps,
Tripharn
If I want to load an object, or a method from an object... but I don't know
what it is can I use the value in the string as the method to run???
For example, I get a string from a user that is 'triangle' stored in temp.
Now I know that there is a class called triangle can I do something like
temp variable = new temp();
Where temp is obviously the string value and not actually the object temp
itself.
Ignore all the security problems here, because it is not going to be used in
any prog... but I need to be able to do it this way for a testing driver.
Thanks heaps,
Tripharn
Comment