subject
Engineering, 28.01.2020 04:31 Hakika

If obj1 and obj2 are both objects of a class that uses dynamic memory allocation, but the class does nohave an assignment operator, what happens if you execute the following code? obj1 =obj2; 50)
a)a syntax error occurs, you cannot assign one object to another object without the =operator. b)there is a complete and independent copy of all the dynamic memory from obj2 to obj1.c)the pointer(s) to the dynamically declared memory in obj2 are copied to the correspondingpointers in obj1.d)a run-time error occurs, because the c++system does not know how to do the assignment

ansver
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 15:10, brooklyn674
Apiston-cylinder with a volume of 0.25 m3 holds 1 kg of air (r 0.287 k/kgk) at a temperature of 100 c. heat transfer to the cylinder causes an isothermal expansion of the piston until the volume triples. how much heat is added to the piston-cylinder?
Answers: 3
image
Engineering, 03.07.2019 15:10, margaret1758
If you were designing a bumper for a car, would you prefer it to exhibit elastic or plastic deformation? why? consider the functions of a bumper in both a minor "fender-bender" and a major collision.
Answers: 1
image
Engineering, 04.07.2019 18:10, kevin72836
Consider a large isothermal enclosure that is maintained at a uniform temperature of 2000 k. calculate the emissive power of the radiation that emerges from a small aperture on the enclosure surface. what is the wavelength ? , below which 10% of the emission is concentrated? what is the wavelength ? 2 above which 10% of the emission is concentrated? determine the wavelength at which maximum spectral emissive power occurs. what is the irradiation incident on a small object placed inside the enclosure?
Answers: 2
image
Engineering, 04.07.2019 18:10, katelynn73
Atmospheric air has a temperature (dry bulb) of 80° f and a wet bulb temperature of 60° f when the barometric pressure is 14.696 psia. determine the specific humidity, grains/lb dry air. a. 11.4 c. 55.8 d. 22.5 b. 44.1
Answers: 1
You know the right answer?
If obj1 and obj2 are both objects of a class that uses dynamic memory allocation, but the class does...

Questions in other subjects:

Konu
Social Studies, 16.10.2020 17:01