Esempio n. 1
0
 //constructor for patient class. Takes in patient name,
 //patient gender and patient blood type as parameters
 //initializes illness attribute
 public Patient(string name, string gender, string bloodType)
 {
     this.name      = name;
     this.gender    = gender;
     this.bloodType = bloodType;
     this.treated   = false;
     illness        = new Illness();
 }
Esempio n. 2
0
 //method adds illness to record. Takes in illness onject
 //as a parameter
 public void AddIllness(Illness i)
 {
     illnesses[countI] = i;
     countI++;
 }
Esempio n. 3
0
 //method assigns illness to patient
 public void SetIllness(Illness ill)
 {
     illness = ill;
 }