From 9a0b3f147bf7febec553231f62c05f0b66883e01 Mon Sep 17 00:00:00 2001 From: famille Thevenot <famille Thevenot@DESKTOP-4DBJ9K3> Date: Thu, 12 Sep 2024 00:06:34 +0200 Subject: [PATCH] =?UTF-8?q?classe=20Entreprise=20modifi=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +++ src/métiers/Entreprise.java | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..04be087 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +#pour netbeans +Libraries/* +Test Libraries/* \ No newline at end of file diff --git a/src/métiers/Entreprise.java b/src/métiers/Entreprise.java index 23db863..6d2b994 100644 --- a/src/métiers/Entreprise.java +++ b/src/métiers/Entreprise.java @@ -12,6 +12,25 @@ import métiers.Commande; */ public class Entreprise { private String raisonSociale; + + public Entreprise(String raisonSociale) { + this.raisonSociale = raisonSociale; + } + + public String getRaisonSociale() { + return raisonSociale; + } + + public void setRaisonSociale(String raisonSociale) { + this.raisonSociale = raisonSociale; + } + + @Override + public String toString() { + return "Entreprise{" + "raisonSociale=" + raisonSociale + '}'; + } + + public void ajouterCommande(Commande uneCommande){ } public void supprimerCommande(Commande uneCommande){