public class WeatherApp {
private WeatherService weatherService;
private BaseWeatherFormatter weatherFormatter;
public WeatherApp(WeatherService weatherService, BaseWeatherFormatter weatherFormatter) {
this.weatherService = weatherService;
this.weatherFormatter = weatherFormatter;
}
...
}