Comments for command example.
This commit is contained in:
		| @@ -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 ) | ||||
|   | ||||
| @@ -1,5 +1,10 @@ | ||||
| package com.iluwatar; | ||||
|  | ||||
| /** | ||||
|  *  | ||||
|  * Interface for spells. | ||||
|  * | ||||
|  */ | ||||
| public abstract class Command { | ||||
|  | ||||
| 	public abstract void execute(Target target); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user