Codeschnippseln für diese Übung

Dependencies:   mbed

class2.cpp

Committer:
Aagrus
Date:
2020-10-13
Revision:
2:7a0bae2281e8
Parent:
1:c65875995efb

File content as of revision 2:7a0bae2281e8:

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;}
};