Why when the destructor of the parent class is defined as virtual, delete pTest2 releases the resources of Derived, otherwise it can only release the resources of Base, and delete pTest1 can release the resources of Derived and Base class Base { public...
-sharpinclude <iostream> using namespace std; class a { public: void virtual x() { cout << "x" << endl; } void xx() { cout << "x1" << endl; } }; class b :public a { public:...