Calling a method



Here's another thing I'm trying to do that I hope someone can help with. I'd like to call a method on an instance of a class using a string as the method name. Something like anInstance.perform("getName"), which would call the method getName() on the instance and return the value from that.

Any ideas on that?
.