본문 바로가기
공부/Object-Oriented Design

3.2 – Separation of Concerns

by 혼밥맨 2021. 9. 21.
반응형

3.2 – Separation of Concerns

 

Concern

 

 

 

Our goal is to create flexible reusable, and maintainable code. 

 

Separation of concerns creates more cohesive classes using abstraction, encapsulation, decomposition, and generalization. 

 

This creates a system that is easier to maintain because each class is organized so that it only contains the code that it needs to do its job. Modularity is increased in turn, which allows developers to reuse and build up individual classes without affecting others.

 

In our smartphone example, it is clear where the boundaries of each class are. However, real-world problems may not be so obvious. Deciding how to abstract, encapsulate, decompose and generalize to address the many concerns for a given problem is at the core of designing modular software. 

반응형

'공부 > Object-Oriented Design' 카테고리의 다른 글

3.4 – Conceptual Integrity  (0) 2021.09.22
3.3 – Information Hiding  (0) 2021.09.21
3.1 – Coupling and Cohesion  (0) 2021.09.21
2.6 – Generalization  (0) 2021.09.18
2.5 – Decomposition  (0) 2021.09.18

댓글