will automatically create a new instance of MyClass, which is different from ... Declare a global variable that is a pointer to the class you want.
www.cplusplus.com