At runtime I have the name of a class in a string, and I want to call a
method on the class having that name. How do I do that?
E.g., let's say that we have several classes that all have a method
called address().
At run-time I know I want to call the method address() on a particular
class, and that class name is in a string.
At runtime I have the name of a class in a string, and I want to call a method on the class having that name. How do I do that?
E.g., let's say that we have several classes that all have a method called address().
At run-time I know I want to call the method address() on a particular class, and that class name is in a string.
At runtime I have the name of a class in a string, and I want to call a
method on the class having that name. How do I do that?
E.g., let's say that we have several classes that all have a method
called address().
At run-time I know I want to call the method address() on a particular
class, and that class name is in a string.
I'd like to check that is the "right way" to do it, but I don't have any reference books to hand.
···
On 17 Mar 2006, at 05:01, Kev Jackson wrote:
Gaudi Mi wrote:
At runtime I have the name of a class in a string, and I want to call a method on the class having that name. How do I do that?
E.g., let's say that we have several classes that all have a method called address().
At run-time I know I want to call the method address() on a particular class, and that class name is in a string.