Vidyalelo
C++ Programming · Q19

Object Oriented Programming in C++

Programming · C++ Programming · question 19

Q19

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

A.
To provide an interface for a class
B.
To encapsulate data
C.
To clean up resources before an object is destroyed
Answer
D.
To create objects

Answer: Option C

Solution

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