delete X,Y will only delete X
If u need to delete two objects, u gotta use two delete statements...
delete X,Y wont work.
Instead one needs to use
delete X;
delete Y;
Things that I learn now and then...
If u need to delete two objects, u gotta use two delete statements...
Was wondering whats so special about a static member function before I discovered two things.
A virtual function in a class, is one which allows modification of its functionality by the derived classes. But whats so special about a virtual destructor is that, when an object of a derived class is destroyed, both the base class destructor and the derived class destructor are invoked. This wont happen if the destructor of the base class is a non-virtual function.