diff --git a/src/métiers/Instrument.java b/src/métiers/Instrument.java index 04db026..f38de2f 100644 --- a/src/métiers/Instrument.java +++ b/src/métiers/Instrument.java @@ -23,4 +23,41 @@ public class Instrument { } + @Override + public String toString() { + return "Instrument{" + "ref=" + ref + ", designation=" + designation + ", qteStock=" + qteStock + ", prix=" + prix + '}'; + } + + public void setRef(int ref) { + this.ref = ref; + } + + public void setDesignation(String designation) { + this.designation = designation; + } + + public void setQteStock(int qteStock) { + this.qteStock = qteStock; + } + + public void setPrix(float prix) { + this.prix = prix; + } + + public int getRef() { + return ref; + } + + public String getDesignation() { + return designation; + } + + public int getQteStock() { + return qteStock; + } + + public float getPrix() { + return prix; + } + }