You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interface Segregation Principle (인터페이스 분리 원칙)
ISP는 자신이 이용하지 않는 메서드에 의존하지 않야아 한다는 원칙이다.
인터페이스 분리 원칙은 큰 덩어리의 인터페이스들을 구체적이고 작은 단위들로 분리시킴으로써 꼭 필요한 메서스들만 이용할 수 있게 한다.
이와 같은 작은 단위들을 역할 인터페이스라고도 부른다.
ISP를 준수로 시스템의 내부 의존성을 약화시켜 리팩토링, 수정, 재배포를 쉽게 할 수 있다.