design pattern notes [1] - Bridge and composite
2012-12-13 09:49
323 查看
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.
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.
相关文章推荐
- design pattern notes [1] - Bridge and composite
- design pattern notes [4] - chain of responsibility, visitor
- pimpl idiom vs. bridge design pattern
- design pattern notes [4] - chain of responsibility, visitor
- Asp.Net Design Pattern Studynotes -- Part1
- Design Pattern Bridge 桥设计模式
- Asp.Net Design Pattern Studynotes -- Part1
- Design Pattern Framework 4.0 C# 之三 Bridge
- Design Pattern Bridge 桥设计模式
- design pattern notes [6] - Observer
- Bridge Design Pattern (桥模式)
- design pattern notes [6] - Observer
- Asp.net Design Pattern study notes -- PART 3
- design pattern notes [8] - interpreter, and command
- Bridge Design Pattern
- Design pattern learning III: Bridge pattern
- design pattern notes [8] - interpreter, and command
- Bridge Design Pattern
- Some Notes About Design Pattern
- design pattern notes [2] - decorator, facade, Singleton, Flyweight, and Adapter