constructer

Nov 8, 2013 at 4:46pm
Why don't we have virtual constructors in c++?
Nov 8, 2013 at 4:51pm
What could it possibly mean to have a virtual constructor? What behaviour would such a thing have?
Nov 8, 2013 at 5:08pm
Sir i don't know much about it...i want to know answer why ??
Nov 8, 2013 at 5:30pm
Think about what it means to make a method virtual.

Now think about how that might apply to a constructor. Can you see any way in which it might?
Nov 8, 2013 at 5:32pm
Stroustrup answered this question in his FAQ: http://www.stroustrup.com/bs_faq2.html#virtual-ctor
Topic archived. No new replies allowed.