What is the use of virtual constructor? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the use of virtual constructor?

11th Oct 2017, 10:54 PM
Vijay
Vijay - avatar
3 Answers
+ 1
there are no virtual constructors as far as I know
12th Oct 2017, 12:28 AM
Eduardo Vazquez
Eduardo Vazquez - avatar
+ 2
Yeah, you are correct. c++ doesn't contain virtual constructor.
12th Oct 2017, 8:50 AM
Vijay
Vijay - avatar
0
you mean private constructor?
12th Oct 2017, 4:14 AM
Oma Falk
Oma Falk - avatar