Exemplo n.º 1
0
        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.");
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            var customer = new Customer();

            Amazon.RateCalculator calculator = new RateCalculator();
        }