how to call a function in main c++ that is inside a class code example Example: calling a method on an object c++ MyClass m; m.printInformation();