コード例 #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();
 }
コード例 #2
0
ファイル: Record.cs プロジェクト: kondjaMikaelson/OOP_C_Sharp
 //method adds illness to record. Takes in illness onject
 //as a parameter
 public void AddIllness(Illness i)
 {
     illnesses[countI] = i;
     countI++;
 }
コード例 #3
0
 //method assigns illness to patient
 public void SetIllness(Illness ill)
 {
     illness = ill;
 }