mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 18:58:44 +00:00
added command sample
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.iluwatar;
|
||||
|
||||
public class Goblin extends Target {
|
||||
|
||||
public Goblin() {
|
||||
this.setSize(Size.NORMAL);
|
||||
this.setVisibility(Visibility.VISIBLE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Goblin";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user