Home »
MCQs »
C++ MCQs
Can we create a virtual constructor in a class?
197. Can we create a virtual constructor in a class?
- Yes
- No
Answer: B) No
Explanation:
No, we cannot create a virtual constructor in a class. Other than inline, no other keyword is allowed in the declaration of the constructor.