From 98b2e9b41093dfb54043726b63fb4598a1d58ebc Mon Sep 17 00:00:00 2001 From: BretschneiderMarvin <81246475+BretschneiderMarvin@users.noreply.github.com> Date: Tue, 28 Mar 2023 14:36:43 +0200 Subject: [PATCH] Adresse + Klasse Datenmodell --- Faktur2/src/Adresse.java | 51 ++++++++++++++++++++++++++++++++++++ Faktur2/src/Datenmodell.java | 18 +++++++++++++ Faktur2/src/Persistenz.java | 9 +++++++ 3 files changed, 78 insertions(+) create mode 100644 Faktur2/src/Adresse.java create mode 100644 Faktur2/src/Datenmodell.java create mode 100644 Faktur2/src/Persistenz.java diff --git a/Faktur2/src/Adresse.java b/Faktur2/src/Adresse.java new file mode 100644 index 0000000..cfd48cb --- /dev/null +++ b/Faktur2/src/Adresse.java @@ -0,0 +1,51 @@ + +public class Adresse { +private String land; +private String strasse; +private String plz; +private String wohnort; +private String hausnummer; + + + +public Adresse(String land, String strasse, String hausnummer, String plz, String wohnort) { + this.land = land; + this.strasse = strasse; + this.hausnummer = hausnummer; + this.plz = plz; + this.wohnort = wohnort; +} + +public String getLand() { + return land; +} + + + +public String getStrasse() { + return strasse; +} + + +public String getHausnummer() { + return hausnummer; +} + + + +public String getPlz() { + return plz; +} + + +public String getWohnort() { + return wohnort; +} + + +} + + + + + diff --git a/Faktur2/src/Datenmodell.java b/Faktur2/src/Datenmodell.java new file mode 100644 index 0000000..3a91c30 --- /dev/null +++ b/Faktur2/src/Datenmodell.java @@ -0,0 +1,18 @@ + +public class Datenmodell { + + private String firmenname; + private String Firmenadresse; + private String Bankverbindung; + + public String getFirmenname() { + return firmenname; + } + public String getFirmenadresse() { + return Firmenadresse; + } + public String getBankverbindung() { + return Bankverbindung; + } + +} diff --git a/Faktur2/src/Persistenz.java b/Faktur2/src/Persistenz.java new file mode 100644 index 0000000..e242503 --- /dev/null +++ b/Faktur2/src/Persistenz.java @@ -0,0 +1,9 @@ + +public class Persistenz { + + public static void main(String[] args) { + // TODO Auto-generated method stub + + } + +}