Vidyalelo
C++ Programming · Q18

Constructors and Destructors in C++

Programming · C++ Programming · question 18

Q18

What happens if a class does not define any constructors in C++?

A.
The class will have a compilation error
B.
The class cannot be compiled
C.
A default constructor is automatically provided
Answer
D.
The class cannot have any objects instantiated

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board