Example #1
0
        static void Main(string[] args)
        {
            SoftwareEngineer bryan = new SoftwareEngineer("Bryan", "$1,000,000,000", "100 BC", "Woz U");
            Engineer         leo   = new Engineer("Leo", "$1000", "11/22/21", "Grass U");

            leo.getName();
            leo.getSalary();
            leo.hiredDate();
            Console.WriteLine("------------------------------------");
            bryan.getName();
            bryan.getSalary();
            bryan.hiredDate();
        }
Example #2
0
        public static void Main()
        {
            Engineer eng = new Engineer("Rupert Scott", "42000", "11/22/12", "MIT");

            eng.getName();
            eng.getSalary();
            eng.hiredDate();

            SoftwareEngineer swe = new SoftwareEngineer("Shea Rovington", "50000", "02/02/2020", "Harvard");

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