Add all 23 GoF design pattern implementations (2026-06-13)
This commit is contained in:
8
03-behavioral/command/Command.java
Normal file
8
03-behavioral/command/Command.java
Normal file
@@ -0,0 +1,8 @@
|
||||
package command;
|
||||
|
||||
/** Command interface: every action is an object */
|
||||
public interface Command {
|
||||
void execute();
|
||||
void undo();
|
||||
String getDescription();
|
||||
}
|
||||
Reference in New Issue
Block a user