Created
August 5, 2019 14:09
-
-
Save njofce/222a75b1da3355a2a767cf115817db5c to your computer and use it in GitHub Desktop.
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 Action1 implements Action { | |
private String name; | |
public Action1(String name) { | |
this.name = name; | |
} | |
@Override | |
public void execute() { | |
System.out.println("Executing Action 1"); | |
} | |
@Override | |
public void undo() { | |
System.out.println("Undo Action 1"); | |
} | |
@Override | |
public String getName() { | |
return this.name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment