#include using namespace std; class MyClass { public: void printInformation(); }; void MyClass::printInformation() { return; } int main(
Declare an instance of MyClass, and then call the member function on that instance:
MyClass m; m.printInformation();