Page 969 - IT2
P. 969
this.ville = v;
}
public override string ToString()
{
return "matricule:"+ this.matricule + " Nom\n" + this.Nom +
"Prenom\n" + this.Prenom + " Genre\n" + this.Genre + "Date de naissnce \n"
+this.DN+ "service:"+ this.service + " Ville\n" + this.Ville ; } }
class Mission
{
public int Numero;
public string Libellé;
public string Lieu;
public string Commentaire;
public float Montant;
public float Taux ;
public Mission() { }
public Mission(int num, string libelle, string lieu, string
commentaire, float montant,float T)
{
this.Numero = num;
this.Libellé = libelle;
this.Lieu = lieu;
this.Commentaire = commentaire ;
this.Montant = montant ;
this.Taux = T;
}
public virtual int CalculerCharge ()
{ return montant * taux ; }
public override string ToString()
{
return "Numero:" + this.Numero + " Libellé\n" + this.Libellé +
"Lieu\n" + this.Lieu + "Commentaire:" + this.Commentaire + " Montant\n" +
this.Montant + " Taux : " + this.Taux;
}
}
1. Classe OrdreMissionTrain:
a. Créer une classe OrdreMissionTrain qui hérite de la classe Mission et
caractérisée par : (2 pts)
· Employé : de type Employé.
· type de train: de type chaine de caractères.
Filière Epreuve Session 5/7
DI Synthèse V2 Juillet 2016
www.itlearning-settat.com
Email: admission@itlearning-settat.com
Tél.:0661077812

