What is the use of virtual constructor? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

What is the use of virtual constructor?

11th Oct 2017, 10:54 PM
Vijay
Vijay - avatar
3 Réponses
+ 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