how to make a class be defined in c++ code example Example: create class instance c++ MyClass* MyObject = new MyClass();