Intermediate
Object-Oriented Programming Concepts
Q49 / 100
What does the "Interface Segregation Principle" (the I in SOLID) state?
Correct! Well done.
Incorrect.
The correct answer is A) Clients should not be forced to depend on methods they do not use; prefer many small, specific interfaces over one large one
A
Correct Answer
Clients should not be forced to depend on methods they do not use; prefer many small, specific interfaces over one large one
Explanation
Splitting large "fat" interfaces into smaller, role-specific ones avoids forcing implementing classes to define methods irrelevant to them.
Progress
49/100