12 2024 档案
摘要:Visitor: Problem Example: exporting the graph into XML format 示例:将图表导出为 XML 格式 Visitor: Solution Place the new behavior into a separate class called v
阅读全文
摘要:State: Problem A finite number of states The program behaves differently within a state Can be switched from one state to another, and switching rules
阅读全文
摘要:Memento: Problem Example: supporting undo in a text editor app Problem 1: private fields cannot be accessed Problem 2: when fields are made public, re
阅读全文
摘要:Iterator: Problem Collections are one of the most used data types in programming There should be a way to go through each element of the collection Mo
阅读全文
摘要:  ![](https://im
阅读全文
摘要:将用例行为分发到类 对于每个事件用例流:确定分析类 ,将用例职责分配给分析类 ,在交互图中对分析类交互进行建模 描述职责 做什么:创建对象,执行计算,对其他对象的初始化操作,控制和协调工作...... 知道什么:关于私有封装数据,关于相关对象,关于他可以推导和计算的事物 描述属性和关联 Attrib
阅读全文