brandishafer3652 brandishafer3652
  • 09-12-2017
  • Computers and Technology
contestada

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

Respuesta :

dinosaurbarn
dinosaurbarn dinosaurbarn
  • 20-12-2017

No it is not a good idea, it shouldn’t be memberwise assignment NOT be used when an object contains a pointer to dynamically allocated memory. Class members are private by default, the following describes a class that would be a good candidate for conversion to a template class is a class which defines a new type of array. 

Answer Link

Otras preguntas

what us the US involvement in the korean peninsula
Need help asap with this I would appreciate the help:0
WILL GIVE BRAINLIESTDetermine whether each pair of figures is similar. If so, write the similarity statement, all congruent angles, and scale factor. B E 6 9 6
Laci earns $8.74 per hour plus a gas allowance of $3.50 per day at her job. How much does Laci's job pay in a day when she works 5 hours? Part A Write an expre
find the value of the series
The way that President Ulysses D. Grant ran his cabinet, in a military style ratherthan civilian, contributed too many scandals in his administration. a. True b
which two u.s. states don’t observe daylight saving time?
which shape show equivalent fraction?A) shapes 1 and 2 B) shapes 1 and 3C) shapes 2 and 3 D) shapes 3 and 4​
PLS ANSWER QUICK PLSHow does the medium vibrate in a transverse wave?A. Parallel to the direction the wave travelsB. With twice the force of the energy provided
help me help me help me