示例#1
0
        public Bancomat()
        {
            _handler = new TenRubleHandler(null);

            _handler = new TenDollarHandler(_handler);
            _handler = new FiftyDollarHandler(_handler);
            _handler = new HundredDollarHandler(_handler);
        }
示例#2
0
 protected BanknoteHandler(BanknoteHandler nextHandler)
 {
     _nextHandler = nextHandler;
 }
示例#3
0
 public TenDollarHandler(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }
示例#4
0
 public FiftyDollarHandler(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }
示例#5
0
 public HundredDollarHandler(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }
示例#6
0
 public TenRubleHandler(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }