Re: interface programming



"dummy#1" <dummy1@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0736F76C-D13F-4B88-892D-BE8F4A1CF983@xxxxxxxxxxxxxxxx
I am using *pure* virtual c++ class. I don't think I can put a virtual
dtor
in a pure virtual class. There is nothing in the class to deallocate.

Yes you can-- in fact, it's almost always the right thing to do to make the
destructor virtual, and making it pure is no great shakes, since the
compiler will supply a default destructor if one is not defined in the
derived class.

S.


.


Loading