Comments for command example.

This commit is contained in:
Ilkka Seppala 2014-08-31 10:56:56 +03:00
parent 6b843f028a
commit 52ca001a7a
2 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,12 @@
package com.iluwatar;
/**
*
* In Command pattern actions are objects that can
* be executed and undone. The commands in this example
* are spells cast by the wizard on the goblin.
*
*/
public class App
{
public static void main( String[] args )

View File

@ -1,5 +1,10 @@
package com.iluwatar;
/**
*
* Interface for spells.
*
*/
public abstract class Command {
public abstract void execute(Target target);