Skip to content

TheAvtarSingh/Interface_Segregation_Principle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

In the SOLID principles of object-oriented design,

"I" - Interface Segregation Principle (ISP).

This principle suggests that a class should not be forced to implement interfaces it doesn't use.

In other words,

it's better to have smaller, more specific interfaces that are tailored to the needs of the classes that implement them, rather than having large, general interfaces that force classes to implement methods they don't need.

Use only needed interfaces