Examveda

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

D. The class will not be able to create objects

Answer: Option C


Join The Discussion

Related Questions on Constructors and Destructors in C plus plus