Bridge Design Pattern
Aliases π: None
Description π: We are separating an object abstraction from its implementation. For instance, we would separate:
- A converter (from X to Y) from how we convert something
- A figure (Circle, Square) from how we render it
- ...
Basically, we interact with interfaces rather than concrete classes.
Advantages β
- Flexibility
- Easier to maintain
Disadvantages π«
- Complexity
Notes π
- None