#include /* Here we have a Class which has a Function that is declared outside of the Class itself ; We just reference the Function inside the class and later outside create a Function with this structure: class::function() */ using namespace std; class outside { public: void coolFunc(); }; void outside::coolFunc() { cout << "I am a cool Outside Function\n"; }; int main() { outside classobj; classobj.coolFunc(); // No cout needed here for some reason ; idk why }