Solved

Which of the Following Statements Is True When a Class

Question 36

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents