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 point P(2,-4) is reflected over the x-axis, determine the coordinates of the image. (-4, 2) (4, 2) (2, 4) (-2, -4)
When a car is parked in hot sunlight, the temperature of the car’s seats _____ and the thermal energy of the seats _____ . ______ decreases, increases, remains
I need to know the answers
F(x)=2(0.65)^x is exponential growth or decay
How did the Missouri Compromise impact the expansion of slavery into the territories?
4^3sqrt(3x-3)^2+2=38
16 over 8= in simplest form
A rectangle with (8, 4 ) , (8,6 ) , (10 , 6 ) and ( 10,4) is dilated by a scale factor of 2 . Which are the coordinates of the images
What is the equation
The Northwest Ordinance of 1787 is significant because it A) guaranteed universal suffrage. B) gave free land to all settlers. C) balanced the number of f