C++ | Virtual Functions | Question 14
Can a constructor be virtual?
Will the following program compile?
Explanation: There is nothing like Virtual Constructor. Making constructors virtual doesn’t make sense as constructor is responsible for creating an object and it can’t be delegated to any other object by virtual keyword means.
Quiz of this Question