Template Method
변하는 로직 부분을 가상 함수를 통해서 재정의 가능하도록 하는 패턴
실행중 교체가 필요 없는 경우에 사용하면 유용하다.
즉, 재사용성이 필요없는 상황일때.
Strategy(Composition)
변하는 로직 부분을 공통 인터페이스를 통해서 변경 가능하도록 하는 패턴
재사용 가능하다.
실행 시간에 교체할 수 있다.