Re: interface programming
- From: "Simon Trew" <noneofyour@xxxxxxxxxxxx>
- Date: Tue, 4 Apr 2006 10:36:30 +0100
"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.
.
- Follow-Ups:
- Re: interface programming
- From: Igor Tandetnik
- Re: interface programming
- References:
- Re: interface programming
- From: Carl Daniel [VC++ MVP]
- Re: interface programming
- Prev by Date: Re: Is there analog of std::mem_fun_t, but for data members?
- Next by Date: Re: interface programming
- Previous by thread: Re: interface programming
- Next by thread: Re: interface programming
- Index(es):
Loading