Page 957 - IT2
P. 957
printf("****************QUESTION 8***********:\n");
printf("****************QUESTION 9*************:\n");
printf("****************QUITTER 0**************:\n");
scanf("%d",&choix);
switch(choix){
case 1:
case 2:
etc…
}while(choix!=0);
Dossier 2: Langage de programmation Orientée Objet (30 pts)
1. Classe Salarié.
class Salarie
{
int identifiant { get; set; }
public string Nom { get; set; }
public string Prenom { get; set; }
public string Adresse { get; set; }
public string Genre { get; set; }
public float Age { get; set; }
private string service { get; set; }
private string departement { get; set; }
public string Ville { get; set; }
public Salarie() { }
public Salarie(int id, string nom, string prenom,
string adresse, string Genre, float Age, string service,
string dep)
{
this.identifiant = id;
this.Nom = nom;
this.Prenom = prenom;
this.Adresse = adresse;
this.Genre = Genre;
this.Age = Age;
Filière Epreuve Session 10/17
DI Synthèse V1 (Correction) Juillet 2016
www.itlearning-settat.com
Email: admission@itlearning-settat.com
Tél.:0661077812

