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...
Write a Java statement to create a scroll pane for a text area named productDescription.
What will be an ideal response?
Computer Science & Information Technology
Write a Java statement that draws a filled oval at position (150, 100) with a height of 100 and a width of 50.
What will be an ideal response?
Computer Science & Information Technology