Moe's Tech Blog

[OO Design Foundation] Steps to Creating Well Designed Software - 4. Modeling the Classes and the Relationships 본문

소프트웨어 디자인/Notes

[OO Design Foundation] Steps to Creating Well Designed Software - 4. Modeling the Classes and the Relationships

moe12825 2022. 6. 6. 07:08
  • This is about creating static structure of system
  • It identifies the main classes and relationship between them 

Step 4.a Use use case diragram to find out what needs to be inside a class

 

Example - App about taking notes

 

Use case diagram about create / edit notes

 

Class Note translated from use case diagram

  • Note, you may not know the properties and details of all classes
    • This is fine. Define abstract things first, and then iteratively refine the design
    • Don't get into too much detail. we may easily get stuck

Step 4.b Create association between classes by constantly referring to use case diragram

 

After defining association between classes

References