Exemple #1
0
        static void Main(string[] args)
        {
            IDispensable dispenser = DispenserFactory.GetDispenser();

            dispenser.Dispense(new Currency(238));
        }
Exemple #2
0
 public BaseDispenser(IDispensable next, int value)
 {
     this.BILL_VALUE = value;
     this.next       = next;
 }
 public ATMDispenser(IDispensable next, int value) : base(next, value)
 {
 }