Which of the following is not a disadvantage of default memberwise copy with objects containing pointers?

a. Having the possibility of leaving a dangling pointer.
b. Allowing both objects to point to the same dynamically allocated storage.
c. Allowing the destructor of one object to be called while leaving the second pointer, to the same memory location,
intact.
d. Requiring the explicit overloading of the assignment operator.

d. Requiring the explicit overloading of the assignment operator.

Computer Science & Information Technology

You might also like to view...

An administrator would like to search for network vulnerabilities on servers, routers, and embedded appliances. Which of the following tools would MOST likely accomplish this?

A. Baseline analyzer B. Ping C. Protocol analyzer D. Nessus

Computer Science & Information Technology

MC If two or more records have the duplicate primary-key field values, this vio-lates the_________ .

a) Rule of Data Integrity. b) Rule of Database Integrity. c) Rule of Entry Integrity. d) None of the above.

Computer Science & Information Technology