On Thu, Mar 12, 2009 at 6:12 PM, Robert Ryan <[email protected]> wrote:
>
> is it true that in C++ a virtual constructor needs a destructor but a pure 
> virtual constructor does not need a destructor
> after further reading, every constructor needs a destructor. what is the 
> difference between a virtual and a pure virtual constructor

Classes that have pure virtual functions are called abstract base
classes, because they cannot be instantiated.
This is the reason why you don't need to define bodies of pure virtual
functions, including pure virtual destructors.
HTH


--
Tamas Marki

Reply via email to