๊ฐ์ฒด์งํฅ ์์น (1) ์ธ๋ค์ผํ ๋ฆฌ์คํธํ [OOP] ๊ฐ์ฒด์งํฅ ์ค๊ณ ์๋ฆฌ ๊ฐ์ฒด์งํฅ ์ค๊ณ ์๋ฆฌ 1. SOLID SOLID๋ ๊ฐ์ฒด์งํฅ ์ค๊ณ ์๋ฆฌ ์ค ๊ฐ์ฅ ์ค์ํ ๋ค์ฏ๊ฐ์ง ์๋ฆฌ SRP(Single Responsibility Principle), OCP(Open-Closed Principle), LSP(LIskov Substitution Principle), ISP(Interface Substitution Principle), DIP(Dependency Inversion Principle)๋ฅผ ๋งํ๋ค. 1.1 SRP ๋จ์ผ ์ฑ ์ ์๋ฆฌ A class should have only one reason to change. ์ํํธ์จ์ด์ ๊ฐ์ฅ ๊ธฐ๋ณธ์ ์ธ ์ค๊ณ ์๋ฆฌ ์ค ํ๋๋ ๋ชจ๋์ ์์ง์ฑ์ด ๋์์ผ ํ๋ค๋ ๊ฒ์ด๋ค. (high-cohesion) ๊ฐ์ฒด์งํฅ ํ๋ก๊ทธ๋๋ฐ์์ ๊ธฐ๋ณธ ๋ชจ๋์ ํด๋์ค์ด๋ค. SRP์.. ์ด์ 1 ๋ค์