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

List 5 examples of positive peer pressure
what is called a land that is abandoned
After several miles of running and sprinting in intervals, the runners muscles ache and feel fatigued. Which is the best explanation for what has occurred.
ARAB INVASION AND MAIN LAGACIES OF ARAB RULE IN THE NORTH AFRICA SUB-REGION
1/2 divided by5 in fraction form
The element vanadium is a solid at room temperature, and its density is 6110 kilograms per meter cubed. Its melting point is 1910 degrees Celsius."
ASAP!!!!!!!!!!!!A marble bag contains 10 red marbles, 19 yellow marbles, and 29 green marbles. What is the % composition of each color marble in the bag?
paguugnay sa iyong pamilya? bansa sarili komunidad daigdig​
In what phase of mitosis does the spindle being forming? Prophase Interphase Metaphase Telophase
Can you help ASAP? Thanks you.