示例#1
0
        static void Main(string[] args)
        {
            //Employees
            Doctor       david     = new Doctor("David Jones", 123, "Heart");
            Doctor       james     = new Doctor("James Smith", 342, "Lungs");
            Surgeon      catherine = new Surgeon("Catherine Vincent", 725, "Brain", true);
            Surgeon      jaime     = new Surgeon("Jaime Rodriguez", 843, "Spine", false);
            Receptionist zachary   = new Receptionist("Zachary Black", 186, "Office", true);
            Receptionist emma      = new Receptionist("Emma Thompson", 865, "Customer Service", false);
            Nurse        clara     = new Nurse("Clara Kane", 527, "In-Patient", 4);
            Nurse        kyle      = new Nurse("Kyle James", 142, "Out-Patient", 2);

            Console.WriteLine("High St. Hospital Employees: \n");
            Console.WriteLine(david.EmployeeInformation() + "\n");
            Console.WriteLine(james.EmployeeInformation() + "\n");
            Console.WriteLine(catherine.EmployeeInformation() + "\n");
            Console.WriteLine(jaime.EmployeeInformation() + "\n");
            Console.WriteLine(zachary.EmployeeInformation() + "\n");
            Console.WriteLine(emma.EmployeeInformation() + "\n");
            Console.WriteLine(clara.EmployeeInformation() + "\n");
            Console.WriteLine(kyle.EmployeeInformation() + "\n");
        }