Bestellung Klasse vervollständigt

master
Nicholas H. 2024-10-21 22:57:57 +02:00
parent d5102c7971
commit cf1fa8b682
1 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,50 @@
import java.util.ArrayList;
public class Bestellung {
public final static ArrayList<Bestellung> bestellungen = new ArrayList<>();
private Warenkorb warenkorb;
private String name;
private String anschrift;
private long bestelldatum;
public Bestellung(Warenkorb warenkorb, long bestelldatum, String anschrift, String name) {
this.warenkorb = warenkorb;
this.bestelldatum = bestelldatum;
this.anschrift = anschrift;
this.name = name;
}
public Warenkorb getWarenkorb() {
return warenkorb;
}
public long getBestelldatum() {
return bestelldatum;
}
public String getAnschrift() {
return anschrift;
}
public String getName() {
return name;
}
public void setWarenkorb(Warenkorb warenkorb) {
this.warenkorb = warenkorb;
}
public void setBestelldatum(long bestelldatum) {
this.bestelldatum = bestelldatum;
}
public void setAnschrift(String anschrift) {
this.anschrift = anschrift;
}
public void setName(String name) {
this.name = name;
}
}