c++ call class function when creating object code example Example: calling a method on an object c++ MyClass m; m.printInformation();