protected BanknoteHandler(BanknoteHandler nextHandler)
 {
     _nextHandler     = nextHandler;
     AmountOfBanknote = new Random((int)DateTime.Now.Ticks).Next(5);
     Thread.Sleep(100);
     Console.WriteLine($"{GetType().Name} имеет {AmountOfBanknote} банкнот");
 }
 protected DollarHandlerBase(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }
Beispiel #3
0
 protected BanknoteHandler(BanknoteHandler nextHandler)
 {
     _nextHandler = nextHandler;
 }
 public TenRubleHandler(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }