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

how is the use of science related to its context in society
What is a counterclaim?
who has written the series of THE SECRETS OF THE DROON and THE COILED VIPER
In return for trading only with them. Great Britain promised the colonies that they would _______________
what did Walter Fleming identify during cell division
in the xy plane below, point c has coordinate (6,9). what is the equation line contains point o and c
Question: Explain how freedoms for African Americans were socially, politically, and economically limited from 1865 to 1900?
In which region of colonies did the Salem Witch trials take place?
Most of the water in plants is lost through the ____.
how chemical displacement reactions differ from a chemical decomposition reaction ? "