Multiple ChoiceBeginner 45s
Rule of Three triggers
What does the Rule of Three state about a class that manages a raw owning pointer?
Options
- 1A class may declare at most three special member functions before the compiler deletes them.
- 2You must define move, copy, and destructor together, or the class itself is ill-formed here.
- 3At most three objects of the class may coexist before the program leaks the owned resource.
- 4If it needs a user-declared destructor, copy constructor, or copy assignment, it very likely needs all three.
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.