Exemplo n.º 1
0
        static void Main(string[] args)
        {
            IDispensable dispenser = DispenserFactory.GetDispenser();

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