• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
开水房
ASP.NET
博客园    首页    新随笔    联系   管理    订阅  订阅
2009年8月12日
Adapter --连接连个不同接口
摘要: Function:Create a new interface(like a adapter or wrapper) between client and class of library. So when use another library, just need to modify the adapter without letting the client knows the change... 阅读全文
posted @ 2009-08-12 16:29 白开水皮皮 阅读(191) 评论(0) 推荐(0)
Visitor -- 对于相似对象全部添加相应的处理方法
摘要: 访问者 visitor的本质是创建若干个各个类型Element的子类SubElement,子类中提供visit(Vistior v)方法,因为SubElement知道自己的类型,所以可以在visit(v)方法中自己决定visitor调用哪个方法来处理SubElement.而不需要在Visitor中根据Element的类型来判断需要执行哪个方法 (instanceof) 阅读全文
posted @ 2009-08-12 15:58 白开水皮皮 阅读(146) 评论(0) 推荐(0)
UML 常用符号 -- 转
摘要: 类之间的关系 UML把类之间的关系分为以下5种. ● 关联实线箭头属性Assosication ● 依赖虚线箭头临时变量或参数 Dependency ● 聚集 实心/空心菱形箭头属性Aggregation/Composition ● 泛化实线三角继承Generalization ● 实现虚线三角接口实现Realization关联(Asso... 阅读全文
posted @ 2009-08-12 14:47 白开水皮皮 阅读(2126) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3