public void Promote() { var calculator = new RateCalculator(); Console.WriteLine("#### Customer Class Hit ####"); Console.WriteLine(" I use the RateCalculator class to promote customers to GoldCustomer status"); Console.WriteLine(" Promote logic processed."); }
static void Main(string[] args) { var Customer = new Customer(); var GoldCustomer = new GoldCustomer(); var RateCalculator = new RateCalculator(); Console.WriteLine("Application START!"); Customer.Promote(); GoldCustomer.OfferVouchar(); RateCalculator.Calculate(Customer); Console.ReadLine(); }
static void Main(string[] args) { var customer = new Customer(); Amazon.RateCalculator calculator = new RateCalculator(); }