Which of the following is not true of a destructor?

a. It performs termination housekeeping.
b. It is called before the system reclaims the object’s memory.
c. If the programmer does not explicitly provide a destructor, the compiler creates an “empty” destructor.
d. It releases the object’s memory.


d. It releases the object’s memory.

Computer Science & Information Technology

You might also like to view...

Analyze the following code.

``` #include using namespace std; class Test { public: int x; Test() { cout << "Test"; } }; int main() { Test test; cout << test.x; } ``` a. The program has a compile error because Test does not have a default constructor. b. The program has a compile error because x has not been initialized. c. The program has a compile error because test is not initialized. d. The program runs fine, but test.x is unpredictable.

Computer Science & Information Technology

The UML decision and merge symbols can be distiguished by ____________

a) the number of flowlines entering or exiting the symbol b) whether or not the flowlines have guard conditions c) Both of the above. d) Neither of the above.

Computer Science & Information Technology

Determining which drawing mode to use depends on your design goals and how you want objects to interact as you draw or arrange them.

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

Computer Science & Information Technology

Which of the following cannot be changed using the Handout master page?

A) The location of fields on the page B) Where the thumbnails appear on the page C) How many thumbnails are on the page D) The orientation of the page

Computer Science & Information Technology