12 2024 档案

摘要:Visitor: Problem Example: exporting the graph into XML format 示例:将图表导出为 XML 格式 Visitor: Solution Place the new behavior into a separate class called v 阅读全文
posted @ 2024-12-24 18:27 Mephostopheles 阅读(3) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2024-12-24 14:25 Mephostopheles 阅读(5) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2024-12-24 11:27 Mephostopheles 阅读(7) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2024-12-23 22:38 Mephostopheles 阅读(2) 评论(0) 推荐(0) 编辑
摘要:![](https://img2024.cnblogs.com/blog/3371759/202412/3371759-20241205220729570-1284809308.png) ![](https://img2024.cnblogs.com/blog/3371759/202412/3371759-20241205220738992-89734355.png) ![](https://im 阅读全文
posted @ 2024-12-05 22:10 Mephostopheles 阅读(17) 评论(0) 推荐(0) 编辑
摘要:将用例行为分发到类 对于每个事件用例流:确定分析类 ,将用例职责分配给分析类 ,在交互图中对分析类交互进行建模 描述职责 做什么:创建对象,执行计算,对其他对象的初始化操作,控制和协调工作...... 知道什么:关于私有封装数据,关于相关对象,关于他可以推导和计算的事物 描述属性和关联 Attrib 阅读全文
posted @ 2024-12-02 23:23 Mephostopheles 阅读(8) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示