Design Patterns · Junior · Question 57 of 75
What does the Bridge pattern separate?
- ✓Correct answer: An abstraction from its implementation, so both can vary independently (e.g. shapes and renderers)
- 2The frontend from the backend
- 3Sync and async code
Explanation
Instead of SvgCircle, CanvasCircle, SvgSquare... you combine any shape with any renderer, avoiding a class explosion.