Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.


+10 votes
asked in CSC305 Fall 2019 by (8 points)

2 Answers

+4 votes

One real life example of a command pattern would be in a game with replays. Your inputs are collected, and then once the player designates the replay to start the game would run the game while executing the prerecorded inputs.

answered by (576 points)
+4 votes

they are used in progress bars (using a method to get an estimate alongside what's already going on)

they are also used when you want to undo something multiple times

and in setup wizards

answered by (8 points)