In a reporting application, the Report class generates repor…

In a reporting application, the Report class generates reports in different formats (PDF, Excel, HTML). Whenever a new format is added, you need to modify the Report class to include the new logic for report generation.How can this design be improved to adhere to the Open-Closed Principle?