Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 557 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 557 Bytes

Bridge

Decouple an abstraction from its implementation so that the two can vary independently.

Structure

classDiagram

class Implementor {
    OperationImp()
}

class ConcreteImplementorA {
    OperationImp()
}

class ConcreteImplementorB {
    OperationImp()
}

class Abstraction {
    Implementor imp
    Operation()
}

class RefinedAbstraction
Abstraction *-- Implementor : has-a
Implementor <|-- ConcreteImplementorA : implements
Implementor <|-- ConcreteImplementorB : implements
RefinedAbstraction --|> Abstraction : implements
Loading