Solved

Which of the Following Statements Is True When a Class

Question 18

Multiple Choice

Which of the following statements is true when a class contains both a copy constructor and a move constructor.


A) The compiler prefers to use the copy constructor.
B) The compiler prefers the move constructor.
C) The programmer explicitly specifies which to use in each case.
D) The compiler decides which one to use based on the context.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions