Example #1
0
        static void Main(string[] args)
        {
            Engineer engineer1 = new Engineer("Rupert Scott", 42000, "11/22/12", "Arizona State University");

            engineer1.getName();
            engineer1.getSalary();
            engineer1.hiredDate();

            SoftwareEngineer sofwareEngineer1 = new SoftwareEngineer("Shea Rovington", 78000, "03/27/18", "Tech School");

            sofwareEngineer1.getName();
            sofwareEngineer1.getSalary();
            sofwareEngineer1.hiredDate();
        }
        static void Main()
        {
            Engineer engineer1 = new Engineer("Joshua Lambert", 114000, "11/22/12", "NYU");

            engineer1.getName();
            engineer1.getSalary();
            engineer1.hiredDate();
            Console.WriteLine("----------------------------------------------------------------");

            SoftwareEngineer softwareEngineer1 = new SoftwareEngineer("Marla Singh", 999000, "03/27/18", "Harvard");

            softwareEngineer1.getName();
            softwareEngineer1.getSalary();
            softwareEngineer1.hiredDate();
        }