SOLID: 5 Principles of Object Oriented Design
S
- Single-responsiblity PrincipleO
- Open-closed PrincipleL
- Liskov Substitution PrincipleI
- Interface Segregation PrincipleD
- Dependency Inversion Principle
1. Single Responsibility Principle(SRP, ๋จ์ผ ์ฑ
์ ์์น)
โ ๋ชจ๋
class
(function
,module
)์ ํ ๊ฐ์ง ๊ธฐ๋ฅ์ ๊ฐ์ง๊ณ ์์ผ๋ฉฐ ์ค์ง ํ ๊ฐ์ง ์ด์ ๋ก๋ง ๋ณํํด์ผ ํ๋ค. a
๐ซ SRP ์๋ฐ - ๋ณํ ๊ฐ๋ฅํ ์ด์ ๊ฐ ํ๋ ์ด์!
๐ ์ฝ๋๋ฅผ ๋ถ๋ฆฌํ์ฌ ๋ชจ๋ํ - ๋ณํ ๊ฐ๋ฅํ ์ด์ ๊ฐ ํ๋์ฉ
โ๏ธReference
Single Responsibility Principle Explained - SOLID Design Principles
The SOLID Principles of Object-Oriented Programming Explained in Plain English
Last updated