Examveda

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

D. To explicitly call the destructor

Answer: Option C


Join The Discussion

Related Questions on Constructors and Destructors in C plus plus