public void ShowAllList(Employee emp)
 {
     Console.WriteLine("\nName of employee is= " + emp.name);
     Console.WriteLine("Father Name of employee is= " + emp.father_name);
     Console.WriteLine("CNIC  of employee is= " + emp.cnic);
     Console.WriteLine("Mobile No  of employee is= " + emp.mobile_no);
     Console.WriteLine("Current Address of employee is= " + emp.current_address);
     Console.WriteLine("Permanent Address of employee is= " + emp.prmanent_address);
     Console.WriteLine("Grade of employee is= " + emp.grade);
     if (emp.type == "P")
     {
         PermanentEmployee pemp = new PermanentEmployee();
         Console.WriteLine("Salary of eployee is= " + pemp.getPay());
     }
     if (emp.type == "C")
     {
         ContractEmployee cemp = new ContractEmployee();
         Console.WriteLine("Salary of eployee is= " + cemp.getPay());
     }
     if (emp.type == "D")
     {
         DailyWages demp = new DailyWages();
         Console.WriteLine("Salary of eployee is= " + demp.getPay());
     }
 }
        public void CountPay()
        {
            Console.WriteLine("Enter type of employee...type P for Permanent,C for contract,D for dailywages");

            String type = Console.ReadLine();

            if (type == "P")
            {
                PermanentEmployee pemp = new PermanentEmployee();
                Console.WriteLine("Salary of eployee is= " + pemp.getPay());
            }
            if (type == "C")
            {
                ContractEmployee cemp = new ContractEmployee();
                Console.WriteLine("Salary of eployee is= " + cemp.getPay());
            }
            if (type == "D")
            {
                DailyWages demp = new DailyWages();
                Console.WriteLine("Salary of eployee is= " + demp.getPay());
            }
        }