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,19 @@
#include <iostream>
/*
Within a Class you can define Functions (called Methodes) ; you can define these to all datatypes you want but just be careful to not segfault
*/
using namespace std;
class MethodConstruction {
public:
void myCoolFunction() {
cout << "I am a very Cool Function and I got called!\n";
}
};
int main() {
MethodConstruction classobj;
classobj.myCoolFunction();
return 0;
}