Created
May 20, 2019 05:05
-
-
Save hackjutsu/70e94b1f59c5882364bd1d2959335e05 to your computer and use it in GitHub Desktop.
[medium snippets] #medium #designPattern #CommandPattern
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ReceiverA { | |
| public void doAction() { | |
| System.out.println("ReceiverA do action!!"); | |
| } | |
| public void undoAction() { | |
| System.out.println("ReceiverA undo action!!"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment