3 public: myInt() : theValue(0) {}
4 public: myInt(int _x) : theValue(_x) {}
5 int val() { return theValue; }
13 myIntAndStuff() : theValue(0), theExtraFluff(1.25) {}
14 myIntAndStuff(int _x) : theValue(_x), theExtraFluff(1.25) {}
15 int val() { return theValue; }
26 hasAnInt() : theInt(42) {}
29 myInt operator + (myInt x, myInt y) { return myInt(x.val() + y.val()); }
30 myInt operator + (myInt x, myIntAndStuff y) { return myInt(x.val() + y.val()); }
36 myIntAndStuff q {z.val()+1};
40 return z.val(); // break here