mirror of
https://github.com/DerTyp7/lf05-java.git
synced 2025-10-29 12:32:12 +01:00
28 lines
527 B
Java
28 lines
527 B
Java
package nogard.schritt3;
|
|
|
|
public class Befehl{
|
|
private String befehlsWort;
|
|
private String befehlsSatz;
|
|
|
|
|
|
|
|
public Befehl(String befehlsWort) {
|
|
this.befehlsWort = befehlsWort;
|
|
this.befehlsSatz = null;
|
|
}
|
|
|
|
|
|
public Befehl(String befehlsWort, String befehlsSatz) {
|
|
this.befehlsWort = befehlsWort;
|
|
this.befehlsSatz = befehlsSatz;
|
|
}
|
|
|
|
public String getBefehlsSatz() {
|
|
return befehlsSatz;
|
|
}
|
|
|
|
public String getBefehlsWort() {
|
|
return befehlsWort;
|
|
}
|
|
}
|