strategy pattern (1) ์ธ๋ค์ผํ ๋ฆฌ์คํธํ [Design Pattern] Strategy Pattern Strategy pattern ์ค๋ฆฌ ์๋ฎฌ๋ ์ด์ ํ๋ก๊ทธ๋จ ๋ชจ๋ ์ค๋ฆฌ๋ ๊ฝฅ๊ฝฅ ์ธ ์ ์๊ณ , ์์์ ํ ์ ์์ ์ด ๋ ์ข ๋ฅ์ ํ์๋ ์ค๋ฆฌ ๋ถ๋ชจ ํด๋์ค์์ ๊ตฌํ๋จ ์ค๋ฆฌ์ display ๋ฉ์๋๋ ์ถ์ ๋ฉ์๋์ ์ค๋ฆฌ ํด๋์ค๋ ์ถ์ ํด๋์ค์ ์ค๋ฆฌ์ ๋ชจ๋ ์์ํด๋์ค๋ display ๋ฉ์๋๋ฅผ ๊ตฌํํด์ผ ํจ ์ฌ๊ธฐ ๋ ํด๋์ค ์ธ์ ๋ค์ํ ํด๋์ค๊ฐ ์์๋์ด ๊ตฌํ๋ ์ ์์ ๋ฌธ์ ์ : ์ค๋ฆฌ ์๋ฎฌ๋ ์ด์ ํ๋ก๊ทธ๋จ์ ๊ฐ์ ํ๊ธฐ ์ํด fly ๊ธฐ๋ฅ์ ์ถ๊ฐํ๊ณ ์ถ๋ค๋ฉด?? Design Pricinple 1 Identify the aspects of your application that vary and separate them from what stays the same Design Pricinple 2 Program to an interf.. ์ด์ 1 ๋ค์