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
| package partie_II;
public class Ouvrier {
public int CodeOuv;
public String Nom;
public String Prenom;
public String GSM;
public Ouvrier() {
this.CodeOuv =0;
this.Nom = null;
this.Prenom = null;
this.GSM = null;
}
public Ouvrier(int codeOuv, String nom, String prenom, String gSM) {
this.CodeOuv = codeOuv;
this.Nom = nom;
this.Prenom = prenom;
this.GSM = gSM;
}
public int getCodeOuv() {
return CodeOuv;
}
public void setCodeOuv(int codeOuv) {
CodeOuv = codeOuv;
}
public String getNom() {
return Nom;
}
public void setNom(String nom) {
Nom = nom;
}
public String getPrenom() {
return Prenom;
}
public void setPrenom(String prenom) {
Prenom = prenom;
}
public String getGSM() {
return GSM;
}
public void setGSM(String gSM) {
GSM = gSM;
}
public String AfficheOuv()
{
return ("Le code d'Ouvrier est : \t"+CodeOuv+"\nSon prénom est :\t"+Prenom+"\nSon nom est :\t"+Nom+"\nSon Num GSM est :\t"+GSM);
}
} |
Partager