Which of the following is true about destructors?

A. They are called explicitly by the main programmer to destroy an object.
B. The class programmer can choose any function name for a destructor.
C. They are only called when the program comes to an end.
D. They are often written to prevent memory leak from occurring.


D

Computer Science & Information Technology

You might also like to view...

The "stored programming" concept developed by John von Neumann states that any program can be written by using only sequence, selection, and repetition structures.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

________ is software that is turned on when the operating system is installed

Fill in the blank(s) with correct word

Computer Science & Information Technology

An important factor when considering an SPS is

A) Switching time B) USB port type C) Network connection speed D) The cost of electricity

Computer Science & Information Technology

The cost of computing power and communications bandwidth has been

a) about the same each year. b) going up. c) going down. d) undetermined.

Computer Science & Information Technology