c++ creating class inside code example Example: create class instance c++ MyClass* MyObject = new MyClass();