示例#1
0
        static void Main(string[] args)
        {
            Employee e1 = new Employee("Ujjwal");

            e1.GetEmployeeDetails();



            PartTimeClerk p1 = new PartTimeClerk();

            p1.NoOfWorkingDays = 50;
            Console.WriteLine();
            p1.GetEmployeeDetails();


            Employee e2 = new Manager();

            e2.GetEmployeeDetails();
            if (e2 is Employee)
            {
                Console.WriteLine("it is employee");
            }

            Console.ReadKey();
        }
        static void Main(string[] args)
        {
            Employee e1 = new Employee("Ujjwal");
            e1.GetEmployeeDetails();

            PartTimeClerk p1 = new PartTimeClerk();
            p1.NoOfWorkingDays = 50;
            Console.WriteLine();
            p1.GetEmployeeDetails();

            Employee e2 = new Manager();
            e2.GetEmployeeDetails();
            if (e2 is Employee)
            {
                Console.WriteLine("it is employee");
            }

            Console.ReadKey();
        }