some more

This commit is contained in:
rattatwinko
2025-04-29 20:53:38 +02:00
parent b489370357
commit 79670e7723
9 changed files with 114 additions and 0 deletions

19
OOP/class_methodes.cpp Normal file
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;
}