mirror of
https://github.com/DerTyp7/lf05-java.git
synced 2025-10-30 04:47:13 +01:00
nogard oder so
This commit is contained in:
26
src/nogard/schritt5/Befehl.java
Normal file
26
src/nogard/schritt5/Befehl.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package nogard.schritt5;
|
||||
|
||||
public class Befehl {
|
||||
private final String befehl_wort;
|
||||
private final String befehl_zusatz;
|
||||
|
||||
public Befehl(String wort) {
|
||||
befehl_wort = wort;
|
||||
befehl_zusatz = null;
|
||||
}
|
||||
|
||||
public Befehl(String wort, String zusatz) {
|
||||
befehl_wort = wort;
|
||||
befehl_zusatz = zusatz;
|
||||
}
|
||||
|
||||
public String getWort() {
|
||||
return befehl_wort;
|
||||
}
|
||||
|
||||
public String getZusatz() {
|
||||
return befehl_zusatz;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user