static void Main(string[] args)
        {
            var lynne = new TechnicalEmployee("Lynne West");
            var logan = new TechnicalEmployee("Logan West");
            var riley = new BusinessEmployee("Riley West");

            Console.WriteLine(lynne.employeeStatus());
            Console.WriteLine(logan.employeeStatus());
            Console.WriteLine(riley.employeeStatus());
        }
Example #2
0
        static void Main(string[] args)
        {
            // Instantiates Employee Object with name Libby and salary 2000 called emp1
            var emp1 = new Employee("Libby", 2000);
            // Instantiates TechnicalEmployee Object with name Zaynah called emp2
            var emp2 = new TechnicalEmployee("Zaynah");
            // Instantiates BusinessEmployee Object with name Winter called emp3
            var emp3 = new BusinessEmployee("Winter");

            // Output to the console window
            Console.WriteLine(emp1.employeeStatus());
            Console.WriteLine(emp2.employeeStatus());
            Console.WriteLine(emp3.employeeStatus());

            TechnicalEmployee te = new TechnicalEmployee("Zet");
            Employee          e  = te;

            Console.WriteLine(e.employeeStatus());
        }
Example #3
0
        static void Main(string[] args)
        {
            // Instantiates TechnicalEmployee Object with name Libby and salary 2000 called employee1
            var employee1 = new TechnicalEmployee("Libby");
            // Instantiates TechnicalEmployee Object with name Zaynah called employee2
            var employee2 = new TechnicalEmployee("Zaynah");
            // Instantiates BusinessEmployee Object with name Winter called employee3
            var employee3 = new BusinessEmployee("Winter");

            // Output to the console window
            Console.WriteLine(employee1.employeeStatus() + "..." + employee2.employeeStatus() + "..." + employee3.employeeStatus());
            Console.ReadLine();
        }