static void Write(BankAccount toWrite, string name) { Console.WriteLine(name); Console.WriteLine("Account number is {0}", toWrite.GetAccNo()); Console.WriteLine("Account balance is {0}", toWrite.GetAccBal()); Console.WriteLine("Account type is {0}", toWrite.GetAccType()); Console.WriteLine(); }