Advanced
Object-Oriented Programming Concepts
Q94 / 100
What is "interface pollution" and how do SOLID principles address it?
Correct! Well done.
Incorrect.
The correct answer is A) When an interface accumulates too many unrelated methods, forcing implementers to provide irrelevant or stub implementations; the Interface Segregation Principle addresses this by splitting into focused interfaces
A
Correct Answer
When an interface accumulates too many unrelated methods, forcing implementers to provide irrelevant or stub implementations; the Interface Segregation Principle addresses this by splitting into focused interfaces
Explanation
Bloated interfaces force unrelated implementers to deal with methods they don't need, often resulting in empty or exception-throwing stub methods — ISP recommends smaller, role-based interfaces instead.
Progress
94/100