//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(); }
//method adds illness to record. Takes in illness onject //as a parameter public void AddIllness(Illness i) { illnesses[countI] = i; countI++; }
//method assigns illness to patient public void SetIllness(Illness ill) { illness = ill; }