Code AnalysisIntermediate 60s
Wrong abstraction via forced hierarchy
abstract class Report { abstract render(): string; }
class CSVReport extends Report {}
class PDFReport extends Report {}
class StreamingPDFReport extends PDFReport {
render() { throw new Error('not supported for streaming'); }
}
What design smell is present?
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.