joshuasanders5260 joshuasanders5260
  • 07-09-2017
  • Computers and Technology
contestada

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?

Respuesta :

rsmith6559
rsmith6559 rsmith6559
  • 08-09-2017
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).
Answer Link

Otras preguntas

The sinking of which passenger ship angered president wilson?
Which statement describes a difference between these painting details by Sandro Botticelli and Albrecht Dürer? A. Botticelli used oil paint, adding numerous lay
Where does glycolysis and fermentation take place in the cell membrane?
Each fourth grade class at Tannin Elementary School want to raise $475 for a local charity. There are 5 fourth grade class rooms.Rianna says that the overall go
How can you tell one element from another
Can someone help me please
The first few seconds of intense exercise use up the cells stores of fat true or false
24 cans of soup in every carton.write the ratio of 1 can to the total number of cans in the carton
)what are some of the important scientific discoveries that laid the groundwork for darwin's theory of evolution?
What would you need to do to find an object's mass and velocity? What tools would you use?