SOLID Principles in JavaScript
Which SOLID principle is violated in this interface design?
interface Printer {
print();
scan();
fax();
photocopy();
}
class BasicPrinter implements Printer {
print() { /* implementation */ }
scan() { throw new Error('Scan not supported'); }
fax() { throw new Error('Fax not supported'); }
photocopy() { throw new Error('Photocopy not supported'); }
}