Last active
May 20, 2019 05:24
-
-
Save hackjutsu/a482456a96dbd2e31ed766276b8cb40b to your computer and use it in GitHub Desktop.
[medium snippets] #medium #designPattern #CommandPattern
This file contains 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 NoCommand implements Command { | |
@Override | |
public void execute() { | |
System.out.println("No Command!"); | |
} | |
@Override | |
public void undo() { | |
System.out.println("No Command!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment