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

Where is the source of the River Thames?
A 26’ long painting is how many yards long?
Which of the following algebraic expressions does not represent the word phrase, "a number times five"?A. k × 5B. k5C. 5 × kD. 5k
53,806 in expanded form using exponents
If you have $13 and you spend $6 on baseball tickets, what fraction of your money did you spend?
What are all the prime and composite numbers from 1-30
why do people call native americans apache
What is 5 over20 by simplifying fraction
What is the place value of the digit 4 in this number 608,241
240,000 written as a whole number mutiplied by a power of ten