示例#1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Welcome to Factory Method in the design patterns.");
            //-------------------------------------------------------------------//
            IBank bank = BankFactory.GetBank(BankType.Vietcombank);

            Console.WriteLine(bank.GetBankName());
        }
示例#2
0
        static void Main(string[] args)
        {
            IBank bank = BankFactory.getBank(BankType.TPBANK);

            Console.WriteLine(bank.getBankName());
        }