///////////////////////////////////////////////////////////////////// // MT4Q10.cpp #include class X { public: ~X() { std::cout << "\n an X being destroyed"; } }; class Y { public: ~Y() { std::cout << "\n a Y being destroyed\n\n"; } }; Y y; // global declaration void main() { X x; // non-static declaration static X xs; // static declaration }