Esempio n. 1
0
        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>();
 }
Esempio n. 3
0
 public Employee(string name, DateTime employmentDate, EmployeeWithSubordinates chief)
     : base(name, employmentDate, chief)
 {
 }