Solved

When a Class Contains a Pointer to Dynamically Allocated Memory

Question 21

Multiple Choice

When a class contains a pointer to dynamically allocated memory, it is a good idea to equip the class with


A) a dynamically allocated constructor.
B) a copy constructor.
C) a static constructor and an overloaded comparison operator.
D) an inline constructor.
E) None of the above

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions