• Card 8 / 72: 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

    Answer:
    B) apply the Adapter Pattern

  • Keyboard Shortcuts

    Previous Card ← Previous Card Button
    Next Card → Next Card Button
    Flip Card Space-Bar
<< First < Previous Next > Last >>

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now
Explanation:

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

Hide Choices Interactive Question Quiz Home Page
Flash Cards plugin by Curtis Blackwell github.com/curtisblackwell/flash_cards
Google Play and the Google Play logo are trademarks of Google Inc.
Ask
Marion Cabalfin
Start Test
Jemekia Weeden
Start Quiz
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>