18 lines
415 B
Java
18 lines
415 B
Java
package Views.Commands;
|
|
|
|
public abstract class Command {
|
|
private String key;
|
|
private String description;
|
|
public Command (String key, String description) {
|
|
this.key = key;
|
|
this.description = description;
|
|
}
|
|
public abstract void execute();
|
|
public String getKey() {
|
|
return this.key;
|
|
}
|
|
public String getDescription() {
|
|
return this.description;
|
|
}
|
|
}
|