Solved

Which of the Following Is Not a Disadvantage of Default

Question 2

Multiple Choice

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.

Correct Answer:

verifed

Verified

Related Questions