Skip to content

Inheriting to avoid writing it twice

A ReportExporter needs the date-formatting and file-naming helpers that already exist in InvoiceExporter, so a developer makes ReportExporter extend InvoiceExporter.

What is the strongest objection?