예제 #1
0
        public static void Main(string[] args)
        {
            Program test       = new Program();
            Account newAccount = AccountFactory.CreateAccount(40);

            Console.WriteLine("Please choose from the menu below");
            test.PrintMenu();
            test.GetUserChoise(newAccount);
            Account AnotherAccount = AccountFactory.CreateAccount(50);

            newAccount.Transfer(AnotherAccount);
            Console.WriteLine("the account balance after transfer: {0}\n", newAccount.GetBalance);
        }