Examveda

What happens if a constructor throws an exception in C++?

A. The destructor is called to deallocate resources

B. The object is not fully constructed

C. The object is still constructed but may have undefined behavior

D. None of the above

Answer: Option B


Join The Discussion

Related Questions on Constructors and Destructors in C plus plus