public CurrentConditionsDisplay(WeatherData weatherData) { _weatherData = weatherData; _weatherData.registerObserver(this); }
public ForecastDisplay(WeatherData weatherData, float currentPressure) { _weatherData = weatherData; _currentPressure = currentPressure; _weatherData.registerObserver(this); }