public static void Main() { int employee_type; Console.WriteLine("Select type of employee:"); Console.WriteLine("_________________________"); Console.WriteLine("1.Montly Employee"); Console.WriteLine("1.daily Employee"); Console.WriteLine("1.One Time employee"); employee_type = Convert.ToInt32(Console.ReadLine()); if (employee_type == 1) { MonhtlyEmployee emp = new MonhtlyEmployee(); emp.salary_calc(); } else if (employee_type == 2) { HourlyEmployee emp = new HourlyEmployee(); emp.salary_calc(); } else if (employee_type == 3) { OneTimeEmployee emp = new OneTimeEmployee(); emp.salary_calc(); } else { Console.WriteLine("Invalid choice"); } }