Chinaunix首页 | 论坛 | 博客
  • 博客访问: 258277
  • 博文数量: 60
  • 博客积分: 1222
  • 博客等级: 少尉
  • 技术积分: 585
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-16 17:28
个人简介

从学通信的博士到从事IT行业的工程师 从原华为项目经理,到现任职公司架构师

文章分类

全部博文(60)

文章存档

2013年(18)

2012年(42)

我的朋友

分类: C/C++

2012-12-23 20:17:11

Bridge pathern is used to decouple abstraction and implementation so that both can involve independently. This makes it easy to modify, extend and reuse abstraction and implementation independently.
Abstraction owns one reference of implementer. Client does not know which implementer it is handling. The implementer is transparent to it.
Bridge pathern is used to decouple abstraction and implementation so that both can involve independently.
Abstraction owns one reference of implementer.

One composite is one container which is composed of some leaves which have identical interfaces with the container. Both the container and its leaves(children) are inherited from component (abstract class). The container has a list (or something like), used to traverse its children. The child may owns reference to its parent (container)
One container is one kind of large leaf (component) which is composed of lightweight components.

阅读(922) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~