Question 6 / 69:  You are trying to add a class already written in another application to serve clients, beside other classes, in your system. All other classes have the same interface, the incoming class has a totally different interface than the clients expect, but contains all required functionalities.

What kind of refactoring is needed to make this class fit in with minimum changes in your system?

A  apply the Proxy Pattern
B  apply the Adapter Pattern
C  create a new class which implements the expected interface and copy and paste the code from
the class in the other application to this new class
<< First < Previous Flashcard Next > Last >>
Explanation:

The Adapter pattern converts the interface of a class into an interface that a client expects.

Quiz Home Page
Ask
Courntey Hub
Start Test
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/gang-of-four-gof-design-patterns" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>