Vidyalelo
C++ Programming · Q23

Constructors and Destructors in C++

Programming · C++ Programming · question 23

Q23

What is the destructor called automatically when an object is destroyed in C++?

A.
.~className()
B.
className::~()
C.
~()
D.
~className()
Answer

Answer: Option D

Solution

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