calling a method on an object c++

C++
MyClass m;

m.printInformation();
Source

Also in C++: