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