From cf1fa8b682fdedb561be48ad057269ca13a446ec Mon Sep 17 00:00:00 2001 From: 3013379 <3013379@stud.hs-mannheim.de> Date: Mon, 21 Oct 2024 22:57:57 +0200 Subject: [PATCH] =?UTF-8?q?Bestellung=20Klasse=20vervollst=C3=A4ndigt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Bestellung.java | 50 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/Bestellung.java diff --git a/src/Bestellung.java b/src/Bestellung.java new file mode 100644 index 0000000..23d0436 --- /dev/null +++ b/src/Bestellung.java @@ -0,0 +1,50 @@ +import java.util.ArrayList; + +public class Bestellung { + public final static ArrayList 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; + } +}