Inspired by: C++ -- why should we define the pure virtual destructor outside the class definition?
What does the following code actually do?
class Object
{
public:
virtual ~Object() = 0;
};
Object::~Object() { /*...*/ }
I thought that the point of a pure virtual function was to force subclasses to implement that particular function. If that is the case, then why bother implementing the same function in the virtual base class?