示例#1
0
 public SpecialisedSoldier(string id,
                           string firstName,
                           string lastName,
                           decimal salary,
                           ICorp corps) : base(id,
                                               firstName,
                                               lastName,
                                               salary)
 {
     corp = corps;
 }
示例#2
0
 public Commando(string id,
                 string firstName,
                 string lastName,
                 decimal salary,
                 ICorp corps) : base(id,
                                     firstName,
                                     lastName,
                                     salary,
                                     corps)
 {
     Corps    = corps;
     Missions = new List <IMission>();
 }
示例#3
0
 public Engineer(string id,
                 string firstName,
                 string lastName,
                 decimal salary,
                 ICorp corps) : base(id,
                                     firstName,
                                     lastName,
                                     salary,
                                     corps)
 {
     Corps   = corps;
     Repairs = new HashSet <IRepair>();
 }
示例#4
0
 public void Add(ICorp corp)
 {
     _subordinateList.Add(corp);
 }