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

which of the boys is the understood leader? how do you know this? in the book holes.
Graph the equation y = 2x - 3 on a coordinate plane
name the device used often to change the resistance without changing the voltage source in an electric circuit
Besides creating jobs, what did President Johnson believe was the key to ending poverty?
Calculate the average rate of change for the function f(x) = −x4 + 4x3 − 2x2 + x + 1, from x = 0 to x = 1.
When the positive even integer n is increased by 50% of itself !the result is between 10&20 . Find n
A continental rift is also called a?
The largest social class in Egypt or ancient Rome was made up of
PLEASE HELP ME!!!! I will be forever grateful!!!  Now it is your turn to plan the trajectories required to launch a spacecraft through a specific route in space
What is the standard deviation of the following data set rounded to the nearest tenth? 11, 5, 12, 8, 5, 12, 10
good job