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

Another question on Engineering

question
Engineering, 03.07.2019 14:10
Amass of m 1.5 kg of steam is contained in a closed rigid container. initially the pressure and temperature of the steam are: p 1.5 mpa and t 240°c (superheated state), respectively. then the temperature drops to t2= 100°c as the result of heat transfer to the surroundings. determine: a) quality of the steam at the end of the process, b) heat transfer with the surroundings. for: p1.5 mpa and t 240°c: enthalpy of superheated vapour is 2900 kj/kg, specific volume of superheated vapour is 0. 1483 m/kg, while for t 100°c: enthalpy of saturated liquid water is 419kj/kg, specific volume of saturated liquid water is 0.001043m/kg, enthalpy of saturated vapour is 2676 kj/kg, specific volume of saturated vapour is 1.672 m/kg and pressure is 0.1 mpa.
Answers: 3
question
Engineering, 04.07.2019 18:10
Acompressor receives the shaft work to decrease the pressure of the fluid. a)- true b)- false
Answers: 3
question
Engineering, 04.07.2019 18:20
Most leaks in reciprocating air compressors can be detected and minimized by: (clo4) a)-detecting leakage areas using ultrasonic acoustic detector. b)-tightening joints and connections c)-replacing faulty equipment d)-all of the given options
Answers: 2
question
Engineering, 04.07.2019 19:10
Asteam is contained in a rigid tank with a volume of 1 m3. initially, the pressure and temperature are 7 bar and 500 oc, respectively. the temperature drops due to cooling process. determine: (1) the temperature at which condensation begins in °c, (2) the fraction of the total mass that has condensed when the pressure decreased to 0.5 bar. (3) the volume in m3 occupied by saturated liquid at the final state?
Answers: 3
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
question
Biology, 14.04.2021 04:40
question
Social Studies, 14.04.2021 04:40
question
Mathematics, 14.04.2021 04:40
question
Mathematics, 14.04.2021 04:40
question
Mathematics, 14.04.2021 04:40
Questions on the website: 13722361