public AbstractObserver(string name, StockMonitor subject) { this.name = name; stockMonitor = subject; stockMonitor.Register(this); }