But........... In c++ there is no concept of pure virtual CONSTRUCTOR.....



________________________________
From: Tamas Marki <[email protected]>
To: [email protected]
Sent: Thursday, 12 March, 2009 10:52:55 PM
Subject: Re: [c-prog] destructors


On Thu, Mar 12, 2009 at 6:12 PM, Robert Ryan <bobzcp...@yahoo. com> 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




      Bollywood news, movie reviews, film trailers and more! Go to 
http://in.movies.yahoo..com/

[Non-text portions of this message have been removed]

Reply via email to