Q. Which of the following is the correct way to define a move assignment operator in C++?
β
Correct Answer: (A)
MyClass& operator=(MyClass&& other) { }
Explanation: The correct way to define a move assignment operator is 'MyClass& operator=(MyClass&& other) { }'.