Bridge Design Pattern

The Bridge design pattern is a structural pattern that decouples an abstraction from its implementation, allowing the two to vary independently. In other words, it separates the interface from its…