Initialisierungsliste

Revision:
0:526e53f544a8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Oct 06 16:39:38 2020 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+class MyClass
+{
+public:
+    
+    MyClass( double messwert ) : _messwert(messwert) {}
+ 
+        void status(){
+          printf("%f\n", _messwert);
+                     }
+private: 
+ 
+double _messwert;
+};
+ 
+MyClass myClass(0.0);
+ 
+int main() {
+    myClass.status();
+    wait_ms(200);
+    
+    }
+        
\ No newline at end of file