SOLID & OOP Principles (50 Qs)•Part 2: Object-Oriented Design, Code Smells & Refactoring (11 - 24)
What is Interface Pollution and how does the Interface Segregation Principle prevent it?
junior LevelTypeScript
In Simple Words:
Occurs when an interface accumulates dozens of unrelated methods. Clients are forced to implement dummy methods they never use. Segregate into smaller, role-focused interfaces (Readable, Writable, Closeable).