void Selecting(int department);
public class CatWrite: IcatWrite
Console.WriteLine("Departments Available");
Console.WriteLine("1- Cardiologist\n 2- Gyncologist \n 3- neurologist\n 4- urologist");
Console.WriteLine("Enter Your department");
public class CatRead: IcatRead
department= Int16.Parse(Console.ReadLine());
public class CatSelecting: IcatSelecting
public void Selecting(int department)
Console.WriteLine("\nYou are looking at cardiologist menu");
Console.WriteLine("\nYou are looking at Gynoclogist menu");
Console.WriteLine("\nYou are looking at neurologist menu");
Console.WriteLine("\nYou are looking at urologist menu");
Console.WriteLine("\nEnter valid department"); break;
public class CatDisp: IcatDisp
Console.WriteLine("\n\n You have selected a type of doctor"); }
public static void Main()
Console.WriteLine("Welcome to the columbia hospitala");
IcatWrite a=new CatWrite();
IcatRead b=new CatRead();
IcatSelecting c=new CatSelecting();
IcatDisp t3= new CatDisp();