예제 #1
0
            static void Main(string[] args)
            {
                CoffeeSort arabica = new CoffeeSort(SortsOfCoffee.Arabica, 2);
                CoffeeSort robusta = new CoffeeSort(SortsOfCoffee.Robusta, 5);

                CoffeeMachine coffeeMaker = new CoffeeMachine(arabica, robusta);
                User          coffeeLover = new User(5);

                Program.Run(coffeeMaker, coffeeLover);
            }
예제 #2
0
 public uint GiveMoney(CoffeeSort sort)
 {
     UserMoney = UserMoney - sort.sortPrice;
     return(sort.sortPrice);
 }
예제 #3
0
 private static void Run(CoffeeMachine coffeeMachine, User user)
 {
     CoffeeSort selectedSortOfCoffee = Program.SelectionCoffee(coffeeMachine, user);
 }