UML Class Diagrams Conceptual vs Specification vs Implementation

后端 未结 4 1834
长发绾君心
长发绾君心 2021-02-09 21:57

I am currently reading Martin Fowler\'s UML Distilled. I have just covered the section on class diagrams, where he places strong emphasis on the need to sort out ones perspectiv

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-09 22:17

    Here's how I explain the ideas to developers.

    • Conceptual is the relationships. This is the level where coupling should happen. You shouldn't see coupling from conceptual to implementation - that's a signal of a poor design.

    • Specification defines the algorithm without defining the implementation. In a class diagram, this might be represented as an abstract class. Alan Shalloway calls methods which fall into this realm "Sergeant methods": They just bark orders.

    • Implementation is where the actual work happens. This might be represented by concrete classes which implement your abstract specifications.

提交回复
热议问题