Skip to content

The example you show does not conform to Interface Segregation Principle #4

@fakharak

Description

@fakharak

Although, you are segregating (breaking / granularizing) a larger Interface into smaller interfaces, however only granularizing a large interface into smaller interfaces does not serve the purpose of Interface Segregation Principle in S.O.L.I.D.

In object-oiented programming, the actual purpose of exposing the subsets of the functions of a (serving) implementation class to the client-code, through multiple (segregated) interfaces is to enable the client-side code to access only interface-specific (contextual / subset) functionality of the (serving) implementation class.

See P-15 and P-13 on the link below to understand the purpose of Interface Segregation Principle. That is a powerful feature for Extensibility: Interface Segregation Principle.

https://www.codeproject.com/Articles/18743/Interfaces-in-C-For-Beginners

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions