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

PLEASE HELP I GIVE THANKS
Napoleon’s decision to invade Russia was, perhaps, his greatest mistake. Which of the following statements is not true about the invasion of Russia? A. Napoleon
Compare the distance-time graph for a fast-moving object with the distance time graph of a slower moving object.
How do fats differ in their chemical composition from carbohydrates?
if 14 out of 24 students in a class are boys what percent of the class are girls?
What is a service??????
A machine can produce 27 inches of ribbon every 3 minutes. How many feet of ribbon can the machine make in one hour? Explain.
Which of the following professions relies most on rhetoric and persuasion? A. astronaut B. librarian C. agent D. educator
What methods did the u.s use in its global struggle against the Soviet Union?
A machine can produce 27 inches of ribbon every 3 minutes. How many feet of ribbon can the machine make in one hour? Explain.