Page 1026 - IT2
P. 1026
Public string getNom(){
Return this.Nom
}
Public void setNom(string nom){
This.Nom=nom ;
}
Public string getPrenom(){
Return this.Prenom
}
Public void setPrenom(string prenom){
This.Prenom=prenom ;
}
Public string getVille(){
Return this.Ville
}
Public void setVille(string ville){
This.Ville=ville ;
}
Public char getSexe(){
Return this.Sexe
}
Public void setVille(char sexe){
This.Sexe=sexe ;
}
Public DateTime getdate(){
Return this.DateNaissance
}
Public void setDateDateTime daten){
This.DateNaissance =daten ;
}
3. Ecrire une méthode permettant d’afficher tous champs de la classe client(2pts)
Public string afficher(){
Return this. CodeClient +" "+ this.Nom+" "+this. Prenom+" "+ this.ville+"
"+this.DateNaissance+" "+this.sexe ;
}
classe Achat
1. Définir une class Achat dont les caractéristiques sont : (2pts)
· ID Achat
· Client : c’est le client qui passe cette commande
· Liste Produit :une liste de produit commandé
· Date
Filière Epreuve Session Page 8 sur 14
TDM Synthèse V1 Juillet 2015

