ramesh wrote:
Why do we have a virtual destructor and why cant we have a virtual
constructor?
Until the object is fully constructed (and its final type known), how
would you decide which constructor function to invoke to construct it?
There is a "virtual constructor" idiom, look it up, but it's not a C++
concept, although it's used in C++.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask