ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
If a class implements some dynamic memory allocations and pointers then _____________
Correct Answer: B — Copy constructor must be defined
In the case where dynamic memory allocation is used, the copy constructor definition must be given. The implicit copy constructor is not capable of manipulating the dynamic memory and pointers. Explicit definition allows to manipulate the data as required.