Skip to content

Latest commit

 

History

History

bridge

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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