virtual can't come along with constructor. It would result compiler error.
On Thu, Mar 12, 2009 at 10:52 PM, Tamas Marki <[email protected]> wrote: > On Thu, Mar 12, 2009 at 6:12 PM, Robert Ryan > <[email protected]<bobzcplpl%40yahoo.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 > > [Non-text portions of this message have been removed]
