Examveda
Examveda

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

A. A compilation error occurs

B. The class cannot be instantiated

C. The class is initialized with default values

D. A default constructor is provided by the compiler

Answer: Option D


Join The Discussion

Related Questions on Constructors and Destructors in C plus plus