how to call a method from an object in c++ code example Example: calling a method on an object c++ MyClass m; m.printInformation();