Пример #1
0
        public static void Main(string[] args)
        {
            var employee1 = new TechnicalEmployee("Libby");
            var employee2 = new TechnicalEmployee("Zaynah");
            var employee3 = new BusinessEmployee("Winter");

            Console.WriteLine($"{employee1.employeeStatus()}...{employee2.employeeStatus()}...{employee3.employeeStatus()}");
        }
Пример #2
0
        static void Main(string[] args)
        {
//var employee1 = new Employee("Libby", 2000);dpt
            var employee1 = new TechnicalEmployee("Libby");
            var employee2 = new TechnicalEmployee("Zaynah");
            var employee3 = new BusinessEmployee("Winter");

            Console.WriteLine(employee1.EmployeeStatus());
            Console.WriteLine(employee2.EmployeeStatus());
            Console.WriteLine(employee3.EmployeeStatus());
        }