Multiple ChoiceBeginner 45s
Command pattern: undo
Which capability most clearly motivates encapsulating a request as a Command object?
Options
- 1Reducing the number of classes in the system. Fewer classes keep tables small.
- 2Making every method private. Only the command can then invoke the operation.
- 3Ensuring every request is dispatched synchronously.
- 4Supporting undo/redo and queued or deferred execution uniformly
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.