some changes ; mostly new examples

This commit is contained in:
rattatwinko
2025-04-29 21:21:54 +02:00
parent 79670e7723
commit e7d74b2ee5
10 changed files with 131 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#include <iostream>
/*
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
}