Vidyalelo
C++ Programming · Q15

Classes and Objects in C++

Programming · C++ Programming · question 15

Q15

What is the purpose of the destructor in C++?

A.
To define objects within a class
B.
To release resources acquired by the object
Answer
C.
To perform calculations with object data
D.
None of the above

Answer: Option B

Solution

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