SOFTWARE ENGINEERING

SOFTWARE DESIGN

DESIGN PATTERNS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
It decouples an abstraction from its implementation so that the two can vary independently.Is it about Bridge Pattern?
A
True
B
False
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -Bridge is used when we need to decouple an abstraction from its implementation so that the two can vary independently. This type of design pattern comes under structural pattern as this pattern decouples implementation class and abstract class by providing a bridge structure between them.

Detailed explanation-2: -The Bridge pattern has the following consequences: Decoupling interface and implementation. An implementation is not bound permanently to an interface.

Detailed explanation-3: -A Bridge Pattern says that just “decouple the functional abstraction from the implementation so that the two can vary independently". The Bridge Pattern is also known as Handle or Body.

There is 1 question to complete.