public ForecastDisplay(WeatherData weatherData)
 {
     this.weatherData = weatherData;
     weatherData.registerObserver(this);
 }
Exemplo n.º 2
0
 public CurrentConditionsDisplay(Subject weatherData)
 {
     this.weatherData = weatherData;
     weatherData.registerObserver(this);
 }
 public StatisticsDisplay(WeatherData weatherData)
 {
     this.weatherData = weatherData;
     weatherData.registerObserver(this);
 }