-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathReadMe.txt
More file actions
11 lines (7 loc) · 731 Bytes
/
ReadMe.txt
File metadata and controls
11 lines (7 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
The bridge pattern decouples and abstraction from its implementation so the two can vary independently.
The bridge connect two implementation.
Example:
We have a abstraction the abstract class Manuscript refined versions of that abstraction in the book, faq and termpaper. The manuscript uses an implementer the IFormatter to provide an implementation of formatting that is
decoupled from the manuscript type. We then have multiple concrete implementations of the formatter.
This allows us to have multiple document types and multiple types of formatting without having to build out a complex implementation hierarchy.
We have bridged our two abstractions the manuscript abstract and the formatting abstraction.