Vidyalelo
C++ Programming · Q4

Constructors and Destructors in C++

Programming · C++ Programming · question 4

Q4

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

A.
A special member function that destroys objects
Answer
B.
A function used to create objects
C.
A function used to initialize objects
D.
A function used to access class members

Answer: Option A

Solution

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