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());
        }
Exemple #2
0
 static void Main(string[] args)
 {
     CreditFactory.CardType("Platinum");
 }