Esempio n. 1
0
 public MyBankomat()
 {
     _handler = new TenHandler(null);
     _handler = new FiftyHandler(_handler);
     _handler = new HundredHandler(_handler);
     _handler = new ThousandHandler(_handler);
 }
Esempio n. 2
0
 public FiftyHandler(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }
Esempio n. 3
0
 public HundredHandler(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }
Esempio n. 4
0
 public ThousandHandler(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }
Esempio n. 5
0
 protected BanknoteHandler(BanknoteHandler nextHandler)
 {
     _nextHandler = nextHandler;
 }
Esempio n. 6
0
 public TenHandler(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }