1. A method, comprising: defining an interface class including a static member having an implementation pointer; loading a main code segment including a stub implementation of the interface class; instantiating the stub implementation of the interface class to provide a stub implementation object, the stub implementation of the interface class including a first constructor configured to set the implementation pointer to the stub implementation object; loading a dynamic library including a real implementation of the interface class; and instantiating the real implementation of the interface class to provide a real implementation object, the real implementation of the interface class including a second constructor configured to set the implementation pointer to the real implementation object.