Question OOP-CTOR-0051
MediumWhat does a move constructor do in C++11?
- A.
Deletes the object
- B.
Copies an object twice
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Constructors and Destructors question
What does a move constructor do in C++11?
Deletes the object
Copies an object twice
Sign up free to see the answer and a step-by-step explanation.
Moves an object to another file
Takes the resources of a temporary object instead of copying them