Consider the following design goals. For each of them, indicate the candidate pattern(s) you would consider to satisfy each goal:
What will be an ideal response?
• Given a legacy banking application, encapsulate the existing business logic component. [Adapter]
• Given a chess program, enable future developers to substitute the planning algorithm that decides on the
next move with a better one. [Bridge]
• Given a chess program, enable a monitoring component to switch planning algorithms at runtime, based
on the opposing player’s style and response time. [Strategy]
• Given a simulation of a mouse solving a maze, enable the path evaluation component to evaluate different
paths independently of the types of moves considered by the mouse. [Command]
You might also like to view...
On an RODC, you can use _____________ to encrypt all the data on the server's hard disk
a. Cipher b. BitLocker c. Certificates d. Adhide
In between major new software upgrades, publishers often release software updates, sometimes referred to as ____________________, designed to fix bugs and update security.
Fill in the blank(s) with the appropriate word(s).