1 2class Base 3{ 4public: 5 int x, y; 6 7 Base() : x(0), y(1) 8 { 9 } 10 11 virtual ~Base() 12 { 13 // Break here. 14 } 15}; 16 17class Derived : public Base 18{ 19public: 20 int z; 21 22 Derived() : Base(), z(23) 23 { 24 } 25 26 ~Derived() 27 { 28 } 29}; 30 31int main() 32{ 33 Derived d; 34 35 return 0; 36} 37