SOFTWARE ENGINEERING

SOFTWARE DESIGN

DESIGN PATTERNS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Permits classes with disparate interfaces to work together by creating a common object by which they may communicate and interact.Use WhenTransitions between states need to be explicit.
A
Adapter
B
Bridge
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -The Adapter pattern allows otherwise incompatible classes to work together by converting the interface of one class into an interface expected by the clients. Socket wrenches provide an example of the Adapter. A socket attaches to a ratchet, provided that the size of the drive is the same.

Detailed explanation-2: -The adapter pattern allows classes that have incompatible interfaces to work together. It does this by converting the interface of an existing class (or software) into one that a client (or service) expects.

Detailed explanation-3: -An Adapter Pattern says that just “converts the interface of a class into another interface that a client wants". In other words, to provide the interface according to client requirement while using the services of a class with a different interface. The Adapter Pattern is also known as Wrapper.

There is 1 question to complete.