// Public constructor public StatisticsDisplay(WeatherData weatherData) { this.weatherData = weatherData; weatherData.Attach(this); }
// Public constructor public HeatIndexDisplay(WeatherData weatherData) { this.weatherData = weatherData; weatherData.Attach(this); }
// Public constructor public ForecastDisplay(WeatherData weatherData) { this.weatherData = weatherData; weatherData.Attach(this); }
// Public constructor public CurrentConditionDisplay(WeatherData weatherData) { this.weatherData = weatherData; weatherData.Attach(this); }