Multiple ChoiceBeginner 45s
Rule of Zero rationale
The Rule of Zero recommends that a class needing resource management should:
Options
- 1Delegate ownership to members like std::unique_ptr/std::vector so no special member functions are written.
- 2Declare the destructor `= default` in every class so the compiler generates the other members.
- 3Never define any constructors; only ever use aggregate initialization to construct objects.
- 4Avoid all dynamically allocated members entirely, owning resources only through raw pointers.
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.