Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.


+11 votes
asked in CSC305 Fall 2019 by (1 point)

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 (1 point)
+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 (1 point)