Пример #1
0
        static void Main(string[] args)
        {
            FullTimeEmployee ft = new FullTimeEmployee();

            ft.FullTimeId = 1001;
            ft.FirstName  = "Mary";
            ft.LastName   = "Mitchel";
            ft.PrintFullName();
            WriteLine("********************");

            PartTimeEmployee pt = new PartTimeEmployee();

            pt.PartTimeId = 3025;
            pt.FirstName  = "Peter";
            pt.LastName   = "Parker";
            pt.PrintFullName();
            Console.ReadLine();
            SeasonalWorker sw = new SeasonalWorker();

            sw.FirstName = "Dude";
            sw.LastName  = "Wtf";
            sw.PrintFullName();
            WriteLine("----------------------");
            HumanResources hr = new HumanResources();

            hr.FirstName = "soiiorre";
            hr.LastName  = "riojtlk";
            hr.PrintFullName();
            WriteLine("////////////////////");
            ReadLine();
        }
Пример #2
0
        static void Main(string[] args)
        {
            FullTimeEmployee full = new FullTimeEmployee();

            full.EmployeeId = 1002;
            full.FirstName  = "Buster";
            full.LastName   = "Douglass";
            full.PrintFullName();

            PartTimeEmployee pa = new PartTimeEmployee();

            pa.EmployeeId = 5209;
            pa.FirstName  = "Mike";
            pa.LastName   = "Tyson";
            pa.PrintFullName();

            Console.ReadLine();
        }