SOFTWARE ENGINEERING

SOFTWARE DESIGN

DESIGN PATTERNS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Convert the interface of a class into another interface clients expect and let classes work together, that could not otherwise because of incompatible interfaces.
A
Bridge
B
Adapter
C
Composite
D
Observer
Explanation: 

Detailed explanation-1: -The Adapter Pattern converts the interface of a class into another interface client expect. Adapter lets classes work together that couldn’t otherwise because of incompatible interfaces.

Detailed explanation-2: -Adapter is a structural design pattern that allows objects with incompatible interfaces to collaborate.

Detailed explanation-3: -The adapter design pattern allows otherwise incompatible classes to work together by converting the interface of one class into an interface expected by the clients.

Detailed explanation-4: -Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn’t otherwise because of incompatible interfaces. Wrap an existing class with a new interface. Impedance match an old component to a new system.

There is 1 question to complete.