Codeschnippseln für diese Übung

Dependencies:   mbed

class2.cpp

Committer:
Aagrus
Date:
2020-10-13
Revision:
1:c65875995efb
Parent:
0:76d9c940a794

File content as of revision 1:c65875995efb:

class MyClassA 
{
    private:    
        int _x;
        bool _wahr;
    
    public:
        MyClassA()  : _x(0), _wahr(false)
        {
            
        }
        MyClassA(int x)  : _x(x), _wahr(false)
        {
            
        }
        MyClassA(int x, bool wahr)  : _x(x), _wahr(wahr)
        {
            
        }
        
        
        
        int GetX(void) {return _x;}
        bool GetBool(void) {return _wahr;}
};