how to call functions of a class cpp code example Example: calling a method on an object c++ MyClass m; m.printInformation();