Michael Planner
/
InitListen
Codeschnippseln für diese Übung
Diff: class2.cpp
- Revision:
- 1:c65875995efb
- Parent:
- 0:76d9c940a794
--- a/class2.cpp Tue Oct 06 16:36:31 2020 +0000 +++ b/class2.cpp Tue Oct 13 16:34:21 2020 +0000 @@ -5,11 +5,21 @@ bool _wahr; public: + MyClassA() : _x(0), _wahr(false) + { + + } + MyClassA(int x) : _x(x), _wahr(false) + { + + } MyClassA(int x, bool wahr) : _x(x), _wahr(wahr) { - // oder - //_x = x; - //_wahr = wahr; + } + + + int GetX(void) {return _x;} + bool GetBool(void) {return _wahr;} }; \ No newline at end of file