Пример #1
0
        public static void MethodHidingMain()
        {
            PartTimeEmployee PTE = new PartTimeEmployee();

            PTE.Print();
            Console.ReadKey();
        }
Пример #2
0
    static void Main()
    {
        FullTimeEmployee FTE = new FullTimeEmployee();

        FTE.FName = "FullTime";
        FTE.LName = "Employee";
        FTE.Print();
        PartTimeEmployee PTE = new PartTimeEmployee();

        PTE.FName = "PartTime";
        PTE.LName = "Employee";
        PTE.Print();
        Console.Read();
    }
Пример #3
0
    public static void Main()
    {
        //Full Time Employee
        FullTimeEmployee fte = new FullTimeEmployee();

        fte.FirstName = "Suraj";
        fte.LastName  = "Janmane";
        fte.Email     = "*****@*****.**";
        fte.Workdays  = 30;
        fte.Print();

        // Part Time Employee
        PartTimeEmployee pte = new PartTimeEmployee("Suraj", "Janmane", "*****@*****.**", 10);

        pte.Print();

        //Part Time Employee
        PartTimeEmployee pte1 = new PartTimeEmployee();

        pte1.Print();
    }