public Bancomat() { _handler = new TenRubleHandler(null); _handler = new TenDollarHandler(_handler); _handler = new FiftyDollarHandler(_handler); _handler = new HundredDollarHandler(_handler); }
protected BanknoteHandler(BanknoteHandler nextHandler) { _nextHandler = nextHandler; }
public TenDollarHandler(BanknoteHandler nextHandler) : base(nextHandler) { }
public FiftyDollarHandler(BanknoteHandler nextHandler) : base(nextHandler) { }
public HundredDollarHandler(BanknoteHandler nextHandler) : base(nextHandler) { }
public TenRubleHandler(BanknoteHandler nextHandler) : base(nextHandler) { }