subject

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 Computers and Technology

question
Computers and Technology, 22.06.2019 09:40
Sarah is having a hard time finding a template for her advertising business that she may be able to use at a later date and also make it available to her colleagues
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
Which cultural aspect does this type of song best portray? a german polka dance
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
Once the data center routes to the destination server that hosts the website, what's the next step in the internet process? user’s browser renders html code from destination server into web page request goes through router/model and isp request routed to nameserver and datacenter
Answers: 2
question
Computers and Technology, 23.06.2019 22:30
Apart from confidential information, what other information does nda to outline? ndas not only outline confidential information, but they also enable you to outline .
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
question
Mathematics, 19.10.2020 17:01
Questions on the website: 13722367