행위

"파이썬 클래스 설계방법"의 두 판 사이의 차이

DB CAFE

(새 문서: == 클래스 설계 방법론 == https://www.fun-coding.org/PL&OOP2-1.html)
 
1번째 줄: 1번째 줄:
 
== 클래스 설계 방법론 ==
 
== 클래스 설계 방법론 ==
 +
=== 5가지 클래스 설계의 원칙 (S.O.L.I.D) ===
 +
S - SRP(Single responsibility principle) 단일 책임 원칙
 +
O - OCP(Open Closed Principle) 개방 - 폐쇄 원칙
 +
L - LSP(Liskov Substitusion Principle) 리스코프 치환 법칙
 +
I - ISP(Interface Segregation Principle) 인터페이스 분리 원칙
 +
D - DIP(Dependency Inversion Principle) 의존성 역전 법칙
 +
출처) https://scotch.io/bar-talk/s-o-l-i-d-the-first-five-principles-of-object-oriented-design
 +
 
https://www.fun-coding.org/PL&OOP2-1.html
 
https://www.fun-coding.org/PL&OOP2-1.html

2020년 9월 22일 (화) 17:25 판

thumb_up 추천메뉴 바로가기


1 클래스 설계 방법론[편집]

1.1 5가지 클래스 설계의 원칙 (S.O.L.I.D)[편집]

S - SRP(Single responsibility principle) 단일 책임 원칙 O - OCP(Open Closed Principle) 개방 - 폐쇄 원칙 L - LSP(Liskov Substitusion Principle) 리스코프 치환 법칙 I - ISP(Interface Segregation Principle) 인터페이스 분리 원칙 D - DIP(Dependency Inversion Principle) 의존성 역전 법칙 출처) https://scotch.io/bar-talk/s-o-l-i-d-the-first-five-principles-of-object-oriented-design

https://www.fun-coding.org/PL&OOP2-1.html