1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
| public class Client {
private int no_clt;
private String nom;
private String adresse;
public Vector <Commande> commandes;
public void setCommandes(Vector<Commande> commandes) {
this.commandes = commandes;
}
// ce constructeur contient le vecteur de commande
public Client(int no_clt, String nom, String adresse,Vector <Commande> commandes ) {
this.no_clt = no_clt;
this.nom = nom;
this.adresse = adresse;
this.commandes=commandes;
}
public Client(int no_clt, String nom, String adresse) {
this.no_clt = no_clt;
this.nom = nom;
this.adresse = adresse;
}
public Vector<Commande> getCommandes() {
return commandes;
}
public String getAdresse() {
return adresse;
}
public int getNo_clt() {
return no_clt;
}
public String getNom() {
return nom;
}
public void setAdresse(String adresse) {
this.adresse = adresse;
}
public void setNo_clt(int no_clt) {
this.no_clt = no_clt;
}
public void setNom(String nom) {
this.nom = nom;
}
} |
Partager