Page 648 - IT2
P. 648
set { Nombreplace = value; }
}
appareilGeolocalisation Appareil;
internal appareilGeolocalisation Appareil1
{
get { return Appareil; }
set { Appareil = value; }
}
public Ambulance() { }
public Ambulance(int num, string nom, int nbrsplace, int capacite, string couleur )
{
this.Capacite = capacite;
this.Numero = num;
this.Nombreplace = nbrsplace;
this.Capacite = capacite;
this.Couleur = couleur;
}
public override string ToString()
{
return " capacite= " + Capacite + "numero= " + Numero + "Nombreplace= "+
Nombreplace+ "Capacite= " + Capacite+ "couleur" + Couleur;
}
}
3. Classe Patient:
class telException : Exception
{
public telException()
: base("le nombre de caractère du numéro de téléphone ne doit pas etre inférieur à 10")
{
}
}
class Patient
{
public string Cin { 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; }
Filière Epreuve Session 7/13
TDI (CDS de 2 à 3) Synthèse V2 (Correction) Juillet 2014
www.itlearning-settat.com
Email: admission@itlearning-settat.com
Tél.:0661077812

