Codeschnippseln für diese Übung

Dependencies:   mbed

Revision:
0:76d9c940a794
Child:
1:c65875995efb
diff -r 000000000000 -r 76d9c940a794 class2.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/class2.cpp	Tue Oct 06 16:36:31 2020 +0000
@@ -0,0 +1,15 @@
+class MyClassA 
+{
+    private:    
+        int _x;
+        bool _wahr;
+    
+    public:
+        MyClassA(int x, bool wahr)  : _x(x), _wahr(wahr)
+        {
+            // oder
+            //_x = x;
+            //_wahr = wahr;
+        }
+        int GetX(void) {return _x;}
+};
\ No newline at end of file