today I plan to take a closer look at the program design pattern known as the Bridge pattern as described by the Gang of 4 aka the fantastic four.
The bridge pattern is a design pattern used in to decouple an abstraction from its implementation so that the two can vary independently.
The bridge uses encapsulation, aggregation, and can use inheritance to separate responsibilities into different classes.
in today’s example we will be using C++
you can find this code in the online repo I have set up at github
I’ll post a URL for the repo
No comments:
Post a Comment