Vidyalelo
C++ Programming · Q39

Constructors and Destructors in C++

Programming · C++ Programming · question 39

Q39

What is the purpose of using the delete keyword in C++ destructors?

A.
To deallocate memory for dynamically allocated objects
B.
To call the parent class destructor
C.
To prevent the destructor from being called
Answer
D.
To explicitly call the destructor

Answer: Option C

Solution

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