In the private section of HashTable, we had a pointer to a function; yet, we did not need to write a destructor for HashTable because:

A. the Array data member takes care of freeing the memory used by the pointer to the function
B. pointers to functions free the dynamic memory that they point to automatically upon
destruction of the object that contains them
C. the function in dynamic memory can still be called after the HashTable object is destroyed, so there is no memory leak
D. the pointer to a function does not point to dynamic memory

D

Computer Science & Information Technology

You might also like to view...

Match the following terms to their meanings:

I. Wiki page II. Web Parts III. Absolute URL IV. Relative URL V. Hyperlink target A. Provides the path to a Web page or a file in relation to another file B. This technology enables SharePoint sites to be flexible and highly customizable C. You can only type in the page body content area D. The file that opens when a hyperlink is clicked E. Provides a full path to a Web page or file

Computer Science & Information Technology

The trial of Zacharias Moussaoui was held in ________

a. New York b. Virginia c. Washington, DC d. None of the above

Computer Science & Information Technology