#include using namespace std; class MyClass { public: void printInformation(); }; void MyClass::printInformation() { return; } int main(
declare it "static" like this:
static void MyClass::printInformation() { return; }