platanus-kr/stack-comments

https://platanus.me/post/1075

Opened this issue · 1 comments

Strategy pattern

2021-03-17 » 스트래티지 패턴 전략패턴이라고도 불리는 스트래티지 패턴은 가튼 문제를 해결하는 여러 코드가 클래스별로 캡슐화 되어있고 이들이 필요할 때 교체할 수 있도록 함으로써 동일한 문제를 다른 코드로 해결할 수 이쎅 하는 디자인 패턴이다. 기존 코드 우선 다음 구조의 클래스가 있다고 보자 public abstract class Guitar { private St

https://platanus.me/post/1075