static void Main(string[] args)
        {
            CreditCard cd = CreditFactory.CardType("Platinum");

            Console.WriteLine("Card Name: " + cd.GetCreditcardName());
            Console.WriteLine("Credit Limit: " + cd.GetCreditLimit());
            Console.WriteLine("CreditCahrge: " + cd.GetCreditCharge());
        }
예제 #2
0
 static void Main(string[] args)
 {
     CreditFactory.CardType("Platinum");
 }