C++

Topic: Templates

Can we have "Virtual Constructors"?

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.

Browse random answers: