Can we have "Virtual Constructors"?

Questions by suji   answers by suji

Showing Answers 1 - 4 of 4 Answers

Lily

  • Sep 28th, 2005
 

No. Virtual Constructor is not allowed.

Dhiraj Nadgouda

  • Dec 2nd, 2005
 

Yes we cannot have virtual constructors.  But if the need arises, we can simulate the implementation of virtural constructor by calling a Init method from the constructor which, should be a virtual function.

priya

  • Mar 4th, 2006
 

we can have virtual destructor but we cant have virtual constructor.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions