1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
class A { public: A() { wcout << _T("A") << endl; }~A() { wcout << _T("~A") << endl; } }; class B: A { public: B() { wcout << _T("B") << endl; }~B() { wcout << _T("~B") << endl; } }; int _tmain(int argc, _TCHAR * argv[]) { B b; return 0; } |
Leave a Reply