Intermediate
Object-Oriented Programming Concepts
Q57 / 100
What is the purpose of the "Adapter" design pattern?
Correct! Well done.
Incorrect.
The correct answer is A) To allow incompatible interfaces to work together by wrapping one in an interface the client expects
A
Correct Answer
To allow incompatible interfaces to work together by wrapping one in an interface the client expects
Explanation
An adapter translates calls from one interface into calls compatible with another, often used to integrate legacy or third-party code.
Progress
57/100