Пример #1
0
        public static void Main(string[] args)
        {
            DiscountCard discountCard = new BronzeCard("Petar", 0);

            discountCard.PrintDiscountAndPurchase(150);

            discountCard = new SilverCard("Marko", 600);
            discountCard.PrintDiscountAndPurchase(850);

            discountCard = new GoldenCard("Stevan", 1500);
            discountCard.PrintDiscountAndPurchase(1300);
        }
Пример #2
0
        static void Main(string[] args)
        {
            DetailsPrinter printer = new DetailsPrinter();
            BronzeCard     bronze  = new BronzeCard(0);
            SilverCard     silver  = new SilverCard(600);
            GoldenCard     gold    = new GoldenCard(1500);

            printer.PrintDetails(bronze, 150);
            printer.PrintDetails(silver, 850);
            printer.PrintDetails(gold, 1300);
            Console.ReadLine();
        }