예제 #1
0
        static void Main(string[] args)
        {
            var candyShop = new CandyShop(300);

            candyShop.CreateCandy();
            candyShop.CreateCandy();
            candyShop.CreateCandy();
            candyShop.CreateLollipop();
            candyShop.CreateLollipop();
            candyShop.PrintInfo();
            candyShop.SellCandy(2);
            candyShop.SellLollipop(1);
            candyShop.PrintInfo();

            Console.ReadLine();
        }