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,24 @@
#include <iostream>
using namespace std;
class MyClass {
public:
int x;
private:
int y;
};
int main() {
MyClass classObject;
/*
Here we try to access the y variable ;
But that is not accessible to us cause its a private Value ;
If that y were accessed inside of that function everything would be fine!
*/
classObject.x = 25;
classObject.y = 50;
return 0;
}