SOFTWARE DESIGN
DESIGN PATTERNS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Bridge
|
|
Adapter
|
|
Composite
|
|
Observer
|
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.