using System; // Import types from System namespace. using Accounting; // Import types from Accounting namespace. namespace DemoTypes { static class UseNamespaceDemo { public static void DoDemo() { Console.WriteLine("\nUseNamespaceDemo"); Console.WriteLine("------------------------------------------------------"); BankAccount[] accs = new BankAccount[] { new SavingsAccount(), new SavingsAccount(), new CurrentAccount() }; for (int i = 0; i < accs.Length; i++) { Console.WriteLine("{0}", accs[i].ToString()); } } } }