Page 958 - IT2
P. 958
this.service = service;
this.departement = dep;
}
public override string ToString()
{
return "id:"+ this.identifiant + " Nom\n" +
this.Nom + "Prenom\n" + this.Prenom+"Adresse:"+ this.Adresse +
" Genre\n" + this.Genre + "Age\n" +this.Age+ "service:"+
this.service + " Departement\n" + this.departement ;
}
}
2. Classe Dépense:
class Dépense
{
int Numero;
string Libellé;
string Lieu;
string Commentaire;
float Montant;
public Dépense() { }
public Dépense(int num, string libelle, string lieu,
string commentaire, float montant)
{
this.Numero = num;
this.Libellé = libelle;
this.Lieu = lieu;
this.Commentaire = commentaire ;
this.Montant = montant ;
}
public virtual int CalculerCharge ()
{
return montant * taux ;
Filière Epreuve Session 11/17
DI Synthèse V1 (Correction) Juillet 2016
www.itlearning-settat.com
Email: admission@itlearning-settat.com
Tél.:0661077812

