Does anyone know of a way to change the implementation of a method on an instance of a class or create a class from a string or anything dynamic like that? I was trying to think of a way to mock functions for testing purposes.<br /><br />The best Idea I have so far is to write a file that inherits from the class I want and overload the function in the child class, then load up an instance of that class. This seems very cumbersome though and I'm not even sure it's possible.