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

If you were to give a five-minute speech, which subject(s) would be in keeping with the above guidelines?
The diameter of a quarter is 24 mm. What is the quarter’s circumference?
Describe how the character of Macduff is introduced and developed in Act II of The Tragedy of Macbeth. Explain what his reaction to King Duncan’s death shows ab
Use "Sinners in the Hands of an Angry God" to answer the following: In his sermon, Edwards uses language to effectively appeal to his audience’s emotions to get
How was franklin D. Roosevelt closely connected to the state of Georgia Needs ASAP
What determines the brightness of a star in the sky? the amount of light on the star the number of other separate stars around it the season of the year on Eart
How are the following all connected together, as in a timeline of American Racial History? 1. the compromise, black codes, fugitive slave 2. Amendments 13, 14
The senate was controlled by the
what is the solution to -2(4x+3)=5+3x i really need it now and can you show me how it's done
Objectives Quiz: A View of Earth 1:Introduction to Earth Science Which of the following describes groundwater? 10