Ask Question

What special member function of a class is automatically called whenever a class object goes out of scope or whenever the class object is destroyed using the delete operator?

+5
Answers (1)
  1. 29 July, 15:34
    0
    It's called a destructor function. It cleans up file handles, dynamic memory and any resources that the object held. It's name is the class' name preceded by a tilde (uppercase back tick, next to the "1" key).
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What special member function of a class is automatically called whenever a class object goes out of scope or whenever the class object is ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers