LearnFrenzy
Sign in Take a free test

Move Semantics · Move Semantics MCQ · Question 5

Which functions make up the rule of five? Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
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!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links