interface-segregation-principle Questions

6

Solved

How does the SOLID "Interface Segregation Principle" differ from "Single Responsibility Principle"? The Wikipedia entry for SOLID says that ISP splits interfaces which are very large into small...

4

As per the Interface Segregation Principle clients should not be forced to implement the unwanted methods of an interface ...and so we should define interfaces to have logical separation. Bu...

2

Solved

In an effort to apply SOLID principles to a Python project that has grown organically and is in need of re-factoring, I am trying to understand how the Interface Segregation Principle can be applie...

3

Solved

Is there any core difference between Liskov Substitution Principle (LSP) and Interface Segregation Principle (ISP)? Ultimately, both are vouching for designing the interface with common functionali...

7

Solved

The Interface Segregation Principle (ISP) says that many client specific interfaces are better than one general purpose interface. Why is this important?

4

Solved

A Leaf in the Composite Pattern implements the Component interface, including Add, Remove, and GetChild methods that a Leaf is never going to use. This seems to be a violation of the Interface Segr...

9

Solved

Is there a specific design pattern that describes the scenario where a non-abstract default implementation is provided that implements all or some of the methods on the interface with empty, NO-OP ...

6

Solved

I was reading about SOLID and other design principles. I thought ISP was the same as "Program to an interface, not an implementation". But it looks like these are different principles? Is there a ...

3

Solved

Is interface segregation principle only a substitue for single responsibility principle ? I think that if my class fulfill SRP there is no need to extract more than one interface. So ISP looks li...

6

Solved

I'm trying to follow the Interface Segregation and Single Responsibility principles however I'm getting confused as to how to bring it all together. Here I have an example of a few interfaces I ha...

2

Solved

Does inheritance from a class with unused methods violates the interface segregation principle? For example: abstract class Base { public void Receive(int n) { // . . . (some important work) ...
1

© 2022 - 2024 — McMap. All rights reserved.