Codeschnippseln für diese Übung

Dependencies:   mbed

Committer:
Aagrus
Date:
Tue Oct 06 16:36:31 2020 +0000
Revision:
0:76d9c940a794
Child:
1:c65875995efb
Uebung 1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Aagrus 0:76d9c940a794 1 class MyClassA
Aagrus 0:76d9c940a794 2 {
Aagrus 0:76d9c940a794 3 private:
Aagrus 0:76d9c940a794 4 int _x;
Aagrus 0:76d9c940a794 5 bool _wahr;
Aagrus 0:76d9c940a794 6
Aagrus 0:76d9c940a794 7 public:
Aagrus 0:76d9c940a794 8 MyClassA(int x, bool wahr) : _x(x), _wahr(wahr)
Aagrus 0:76d9c940a794 9 {
Aagrus 0:76d9c940a794 10 // oder
Aagrus 0:76d9c940a794 11 //_x = x;
Aagrus 0:76d9c940a794 12 //_wahr = wahr;
Aagrus 0:76d9c940a794 13 }
Aagrus 0:76d9c940a794 14 int GetX(void) {return _x;}
Aagrus 0:76d9c940a794 15 };