Vidyalelo
C++ Programming · Q38

Constructors and Destructors in C++

Programming · C++ Programming · question 38

Q38

What happens if the destructor is explicitly defined in a C++ class, but the constructor is not defined?

A.
It will cause a compilation error
B.
The class will be instantiated with default values
C.
The destructor will not be called
Answer
D.
The class will not be able to create objects

Answer: Option C

Solution

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