Skip to content

Commit 52ca001

Browse files
committed
Comments for command example.
1 parent 6b843f0 commit 52ca001

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

command/src/main/java/com/iluwatar/App.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
package com.iluwatar;
22

3+
/**
4+
*
5+
* In Command pattern actions are objects that can
6+
* be executed and undone. The commands in this example
7+
* are spells cast by the wizard on the goblin.
8+
*
9+
*/
310
public class App
411
{
512
public static void main( String[] args )

command/src/main/java/com/iluwatar/Command.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
package com.iluwatar;
22

3+
/**
4+
*
5+
* Interface for spells.
6+
*
7+
*/
38
public abstract class Command {
49

510
public abstract void execute(Target target);

0 commit comments

Comments
 (0)