Brain Dump

Bridge Pattern

Tags
soft-eng

Is a software design pattern that reduces the number of specialised variants of a concept by encapsulating one varying dimension inside the other.

For example separating the Set, Bag and Stack insertion semantics from the Array, List and Tree elements. This is essentially reducing the duplication in implementations of ArraySet, ListSet, TreeSet, etc.