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,20 @@
#include <iostream>
/*
Here we have a example of a Constructor ;
When we create a Class Object we auto-call the Constructor
*/
using namespace std;
class MyClass {
public:
MyClass() { // This is the constructor!
cout << "Construct!";
}
};
int main() {
MyClass classobj; // When we create this the Constructor autocalls!
return 0;
}