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 19:30
When using the ohmmeter function of a digital multimeter, the leads are placed in what position relative to the component being tested? a. parallel b. control c. series d. line
Answers: 3
question
Engineering, 04.07.2019 16:10
The force on a cutting tool are 2600n vertically downward and 2100 horizontal. determine the resultant force acting on the tool and the angle at which it acts.
Answers: 1
question
Engineering, 04.07.2019 18:10
Different types of steels contain different elements that alter the characteristics of the steel. for each of the following elements, explain what the element does when alloyed with steel.
Answers: 2
question
Engineering, 04.07.2019 18:10
The higher the astm grain-size number, the coarser the grain is. a)-true b)-false
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, 18.03.2021 03:00
question
English, 18.03.2021 03:00
question
Mathematics, 18.03.2021 03:00