Question 5
Back to Exercise
Which five functions does the rule of five refer to?
- A Constructor, destructor, getter, setter, swap
- B Destructor, copy constructor, copy assignment, move constructor, move assignment Correct
- C new, delete, malloc, free, realloc
- D begin, end, size, empty, clear
Correct Answer: Option B
If you need one for resource management, you need all five.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!