Abstract Factory Pattern (์ถ”์ƒ ํŒฉํ† ๋ฆฌ ํŒจํ„ด)

Abstract Factory Pattern (์ถ”์ƒ ํŒฉํ† ๋ฆฌ ํŒจํ„ด) ๋น„ํ–‰๊ธฐ๋ฅผ ์กฐ์ •ํ•˜๊ณ  ๋ฏธ์‚ฌ์ผ์„ ๋ฐœ์‚ฌํ•ด์„œ ์ ์„ ๋ฏธ์‚ฌ์ผ๋กœ ๋งž์ถ”๋Š” ์ŠˆํŒ… ๊ฒŒ์ž„์„ ๋งŒ๋“ ๋‹ค๊ณ  ๊ฐ€์ •ํ•˜์ž. ๊ฒŒ์ž„ ํ”Œ๋ ˆ์ด๋ฅผ ์ง„ํ–‰ํ•˜๋Š” Stage ํด๋ž˜์Šค๋Š” ๋ช‡ ๋‹จ๊ณ„์ธ์ง€์— ๋”ฐ๋ผ ์„œ๋กœ ๋‹ค๋ฅธ ์ , ์žฅ์• ๋ฌผ, ๋ณด์Šค๋ฅผ ์ƒ์„ฑํ•ด์•ผ ํ•œ๋‹ค. ์ด๋ฅผ ์œ„ํ•œ Stage ํด๋ž˜์Šค๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค. ์ด ์ฝ”๋“œ์˜ ๋ฌธ์ œ์ ์€ ๋‹จ๊ณ„๋ณ„๋กœ ์ , ์žฅ์• ๋ฌผ, ๋ณด์Šค๋ฅผ ์ƒ์„ฑํ•˜๋Š” ๊ทœ์น™์ด Stage ํด๋ž˜์Šค์— ํฌํ•จ๋˜์–ด ์žˆ๋‹ค๋Š” ๊ฒƒ์ด๋‹ค. ์ƒˆ๋กœ์šด ์  class๊ฐ€ ์ถ”๊ฐ€๋˜๊ฑฐ๋‚˜, ๊ฐ ๋‹จ๊ณ„์˜ ๋ณด์Šค ์ข…๋ฅ˜๊ฐ€ ๋ฐ”๋€” ๋•Œ, ๋‹จ๊ณ„๋ณ„ ์  ์ƒ์„ฑ ๊ทœ์น™์ด ๋‹ฌ๋ผ์งˆ ๊ฒฝ์šฐ ๋“ฑ์— Stage ํด๋ž˜์Šค๋ฅผ ํ•จ๊ป˜ ์ˆ˜์ •ํ•ด์•ผํ•˜๊ณ , ์ฝ”๋“œ๋˜ํ•œ ๋ณต์žกํ•ด์ง„๋‹ค. ๋”ฐ๋ผ์„œ Stage ํด๋ž˜์Šค์—์„œ ๊ฐ์ฒด์ƒ์„ฑ ์ฑ…์ž„์„ ๋ถ„๋ฆฌํ•œ๋‹ค.**โ€‹** ์ด๋•Œ ์‚ฌ์šฉ๋˜๋Š” ํŒจํ„ด์ด ์ถ”์ƒ ํŒฉํ† ๋ฆฌ ํŒจํ„ด์ด๋‹ค. Enemy..

Design Pattern 2019. 9. 13. 16:56
๊ณต์ง€์‚ฌํ•ญ
์ตœ๊ทผ์— ์˜ฌ๋ผ์˜จ ๊ธ€
์ตœ๊ทผ์— ๋‹ฌ๋ฆฐ ๋Œ“๊ธ€
Total
Today
Yesterday
๋งํฌ
ยซ   2024/11   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
๊ธ€ ๋ณด๊ด€ํ•จ