public EmployeeBase(string name, DateTime employmentDate, EmployeeWithSubordinates chief) { Name = name; EmploymentDate = employmentDate; Chief = chief; if (chief != null) { Chief.Subordinates.Add(this); } }
public EmployeeWithSubordinates(string name, DateTime employmentDate, EmployeeWithSubordinates chief) : base(name, employmentDate, chief) { subordinates = new List <EmployeeBase>(); }
public Employee(string name, DateTime employmentDate, EmployeeWithSubordinates chief) : base(name, employmentDate, chief) { }