Ask Question
13 January, 03:00

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. 13 January, 05:39
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers