The bridge pattern is a design pattern used in software engineering that is meant to "decouple an abstraction from its implementation so that the two can vary independently", introduced by the Gang of Four.[1] The bridge uses encapsulation, aggregation, and can use inheritance to separate responsibilities into different classes.
When a class varies often, the features of object-oriented programming become very useful because changes to a program's code can be made easily with minimal prior knowledge about the program. The bridge pattern is useful when both the class and what it does vary often. The class itself can be thought of as the abstraction and what the class can do as the implementation. The bridge pattern can also be thought of as two layers of abstraction.
When there is only one fixed implementation, this pattern is known as the Pimpl idiom in the C++ world.
The bridge pattern is often confused with the adapter pattern, and is often implemented using the object adapter pattern; e.g., in the Java code below.
Variant: The implementation can be decoupled even more by deferring the presence of the implementation to the point where the abstraction is utilized.
^Cite error: The named reference GoFp151 was invoked but never defined (see the help page).
The bridgepattern is a design pattern used in software engineering that is meant to "decouple an abstraction from its implementation so that the two can...
version of the Composite pattern with methods for aggregation of children Bridgepattern: decouple an abstraction from its implementation so that the two can...
The Willow pattern is a distinctive and elaborate chinoiserie pattern used on ceramic tableware. It became popular at the end of the 18th century in England...
In software engineering, a design pattern describes a relatively small, well-defined aspect (i.e. functionality) of a computer program in terms of how...
library, for example. This technique is described in Design Patterns as the Bridgepattern. It is sometimes referred to as "handle classes", the "Pimpl...
message-oriented middleware in the form of a pattern language. The pattern language presented in the book consists of 65 patterns structured into 9 categories, which...
Design Patterns: Elements of Reusable Object-Oriented Software (1994) is a software engineering book describing software design patterns. The book was...
Napier Bridge is a bridge in Chennai, India, built over the Coovum River, connecting Fort St. George with the Marina beach. It is also one of the historic...
On April 21, 2020, a new lane pattern was established on the Griffin Bridge. A new mergeing pattern onto the Rowe bridge, better enabling traffic from...
The Golden Gate Bridge is a suspension bridge spanning the Golden Gate, the one-mile-wide (1.6 km) strait connecting San Francisco Bay and the Pacific...
In the game of bridge mathematical probabilities play a significant role. Different declarer play strategies lead to success depending on the distribution...
entrance to the bridge with continually changing views of the bridge and harbour. The bridge has been an important factor in the pattern of growth of metropolitan...
mounting hole patterns, both with M4 x 0.7 threads: square ILM (80×80 mm mounting pattern), and narrow ILM (56×94 mm mounting pattern). Square ILM is...
is an evocative washerwoman's lament. Though the verse, chorus, and bridgepattern is present, the effect of the song is of one long, cohesive melodic...
collection of individual spherical wavelets. The characteristic bending pattern is most pronounced when a wave from a coherent source (such as a laser)...
design patterns as the command pattern (the basis for undo-redo mechanisms, i.e. CTRL-Z/CTRL-Y, in interactive systems) and the bridgepattern. The original...
Preston Lane Jr. Memorial Bridge (informally called the Chesapeake Bay Bridge and, locally, the Bay Bridge) is a major dual-span bridge in the U.S. state of...
bridge taps. This pattern is only effective for T1 spans that transmit the signal raw. Modulation used in HDSL spans negates the bridgetap patterns'...
bridge was washed away by the flood of April 1, 1987. A modern covered bridge, patterned after the original, was built on the original abutments in 1990. The...
forward‐inclined pylon and on the outer edges of the bridge deck, arranged in a fan shape pattern from the side elevation. To counterbalance these front...