728x90 Solid1 객체지향 설계 5대 원칙 SOLID SRP (Single Responsibility Principle) 단일 책임 원칙There should never be more than one reason for a class to changeLow Coupling, High Cohesion(낮은 결합도, 높은 응집력)하나의 객체(클래스)는 하나의 책임(기능)만 가져야 한다. OCP (Open-Closed Principle) 개방-폐쇄 원칙Software Entites (Class, Modules, Functions, Etc.) should be open for extension, But closed for modification소프트웨어의 구성요소(클래스, 모듈, 함수 등)는 확장에는 열려있고, 변경에는 닫혀있어야 한다 (다른 추가 사항이 있더라도.. 2024. 12. 18. 이전 1 다음 728x90