to show how virtual destructor works in C++