Engineering
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

answer
Answers: 2

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, redrosesxx
Water at 55c flows across a flat plate whose surface temperature is held constant at 95c. if the temperature gradient at the plate's surface for a given value of x is 18 c/mm, find a) local heat transfer coefficient. b) heat flux
Answers: 3
image
Engineering, 04.07.2019 18:10, selenamr
Ifa component is made of two or more materials with different modulus of elasticity (e), it is called a composite member and we calculate the factor·n". mention the formula for calculating n". also, ifn> 1, explain what will happen to the 1. transformed. gi) ifn 1, what will happen to the material when transformed material when
Answers: 1
image
Engineering, 04.07.2019 18:20, DroctorWellsfan
Inspection for bearing condition will include: (clo4) a)-color b)-smell c)-size d)-none of the above
Answers: 1
image
Engineering, 04.07.2019 18:20, rhussein6452
Wiy doeres rere okhn a pump whon working betwon the same pressure range?
Answers: 2
Do you know the correct 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
English, 11.04.2021 16:50
Konu
History, 11.04.2021 17:00
Konu
History, 11.04.2021 17:00