Exemple #1
0
        static public void RunSheaRovington()
        {
            // Employee Name: Shea Rovington
            // Salary: Sorry, this employee's salary is private.
            // Hire Date: 03 / 27 / 18
            SoftwareEngineer emp = new SoftwareEngineer("Shea Rovington", "53000", "03/27/18", "");

            emp.GetName();
            emp.GetSalary();
            emp.GetHireDate();

            emp.GetSchoolAttended();
        }
Exemple #2
0
        static public void RunRayRayRovington()
        {
            // Employee Name: Ray Ray Rovington
            // Salary: Sorry, this employee's salary is private.
            // Hire Date: 03 / 27 / 18
            Employee emp = new SoftwareEngineer
            {
                Name           = "Ray Ray Rovington",
                Salary         = "47000",
                HireDate       = "03/27/18",
                SchoolAttended = "Carnegie Mellon"
            };

            emp.GetName();
            emp.GetSalary();
            emp.GetHireDate();

            ((SoftwareEngineer)emp).GetSchoolAttended();
        }