← Quiz: Move Semantics and rvalue References: all 10 questions
Quiz: Move Semantics and rvalue References · Question 8 of 10
Which list is the rule of five?
Which list is the rule of five?
- A.Constructor, destructor, getter, setter, operator==
- B.Destructor, copy constructor, copy assignment, move constructor, move assignment
- C.Five constructors with different parameters
- D.new, delete, new[], delete[], malloc
Answer & explanation
Correct answer: Destructor, copy constructor, copy assignment, move constructor, move assignment
A class that manages a raw resource must consider all five special member functions.
Can you get the rest right without peeking?
Take the timed Quiz: Move Semantics and rvalue References quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →