- Get link
- X
- Other Apps
A bare-bones, generic implementation of the bridge pattern, using inheritance, polymorphism, and abstraction. Salient Characteristic(s) Decouple classes, allowing them to vary independently Useful when frequent changes are made to classes Code namespace DesignPatterns { /// <summary> /// The implementor: the abstract class, and concrete implementation of one side of the relation /// </summary> public interface IBridgeAbstraction { void Build(); } abstract class BridgeAbstraction : IBridgeAbstraction { public abstract void Build(); } class ConcreteBridge1 : BridgeAbstraction { public override void Build() { } ...