mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 20:58:35 +00:00
added command sample
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package com.iluwatar;
|
||||
|
||||
public abstract class Command {
|
||||
|
||||
public abstract void execute(Target target);
|
||||
|
||||
public abstract void undo();
|
||||
|
||||
@Override
|
||||
public abstract String toString();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user