Ask Your Question
2

Can the Bridge Pattern separate the implementation from the abstraction?

asked 2022-01-03 11:00:00 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-02-02 14:00:00 +0000

djk gravatar image

Yes, the Bridge Pattern can separate the implementation from the abstraction. The pattern achieves this by defining two separate hierarchies: one for the abstraction and another for the implementation. The abstraction hierarchy contains the high-level logic and behavior, while the implementation hierarchy contains the low-level details and platform-specific code. The Bridge Pattern then provides a way to connect and communicate between the two hierarchies without coupling them tightly. This allows for greater flexibility and modifiability, as either hierarchy can be modified or extended independently without affecting the other.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-01-03 11:00:00 +0000

Seen: 15 times

Last updated: Feb 02 '23