ISP - Interface Segregation Principle

"Interfaces should be fine-grained and client-specific."

In other words, this means that if the class has various use cases, then it should have a specific interface for each of its use cases.

Once again, our preceding example in LSP shows how the interface segregation principle is achieved by splitting the ISettings interface into two separate interfaces--IReadableSettings and IWriteableSettings.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.165.115