Multiple Choice
If obj1 and obj2 are both objects of a class that uses dynamic memory allocation, but the class does not have an assignment operator, what happens if you execute the following code?
Obj1=obj2;
A) A syntax error occurs, you can not assign one object to another object without the = operator
B) A run-time error occurs, because the C++ system does not know how to do the assignment.
C) The pointers) to the dynamically declared memory in obj2 are copied to the corresponding pointers in obj1.
D) There is a complete and independent copy of all the dynamic memory from obj2 to obj1
Correct Answer:

Verified
Correct Answer:
Verified
Q23: The assignment operator must be a _
Q24: A friend function needs to be passed
Q25: Who can access private data in a
Q26: How many parameters are there in a
Q27: Which of the following would be an
Q29: Which of the following are valid declarations
Q30: The destructor for a class is called<br>A)
Q31: Friend functions are members of the class.
Q32: The following is a properly declared overloaded
Q33: Operators must be friends of the class.