mirror of
https://github.com/JakubVojvoda/design-patterns-cpp.git
synced 2025-12-17 12:54:36 +03:00
init Bridge
This commit is contained in:
17
bridge/Bridge.cpp
Normal file
17
bridge/Bridge.cpp
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* C++ Design Patterns: Bridge
|
||||||
|
* Author: Jakub Vojvoda [github.com/JakubVojvoda]
|
||||||
|
* 2016
|
||||||
|
*
|
||||||
|
* Source code is licensed under MIT licence
|
||||||
|
* (for more details see LICENCE)
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
11
bridge/README.md
Normal file
11
bridge/README.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
## Bridge
|
||||||
|
|
||||||
|
Decouple an abstraction from its implementation so that the two can
|
||||||
|
vary independently.
|
||||||
|
|
||||||
|
### When to use
|
||||||
|
|
||||||
|
* you want to avoid a permanent binding between an abstraction and its implementation
|
||||||
|
* both the abstractions and their implementations should be extensible by subclassing
|
||||||
|
* changes in the implementation of an abstraction should have no impact on clients
|
||||||
|
* you want to hide the implementation of an abstraction completely from clients
|
||||||
Reference in New Issue
Block a user