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

if you dig a 6 foot hole how deep is that hole????
With which region of the United States does Mark Twain link irreverence and humor in "The Notorious Jumping Frog of Calaveras County"? O the Midwest O the East
Madelyn made note of all the bicycles and cars she could see parked or locked on a certain city block. All the cars had exactly four wheels, and all the bicycle
I need the answer. Plzzzzzz
A group of friends wants to go to the amusement park. They have $363 to spend on parking and admission. Parking is $5.50, and tickets cost $35.75 per person, in
Write an equation of the circle with center (2, -9) and radius 3.
Please answer correctly !!!!! Will mark Brianliest !!!!!!!!!!!!!!
How were American authors and artists inspired by the natural world? PLEASE HELP ME!! THANK YOU! :D
Pls help me with this
Which of the following is an effective evaluation technique to use after delivering a presentation? a To conduct a self-evaluation on the effectiveness of the