Answer the following questions true (T) or false (F)

1. The Adaptor pattern transforms a class by layering a new interface over the class.

2. The Adaptor pattern changes the class it modifies when it layers a new interface over the class.


1. True
Explanation: Typically, the stack and queue template adapter containers by default modify the interface of the deque container. These adapters hide the deque interface, and provide interface appropriate to stack and queue respectively.
2. False
Explanation: The Adapter Pattern does not change the class it uses. For example, the stack and queue adapter container classes pass the underlying container as a template parameter. The container type is used as a type for a variable within the container. The class is not changed.

Computer Science & Information Technology

You might also like to view...

A(n) ________ makes it difficult for automated software to read, but relatively easy for humans to read

Fill in the blank(s) with correct word

Computer Science & Information Technology

In a flowchart or in pseudocode, you can use the symbol that mathematicians use to mean "not equal," which is ____.

A. an equal sign with an octagon over it B. an equal sign with a circle around it C. an equal sign with a slash after it D. an equal sign with a slash through it

Computer Science & Information Technology

In the Option Button Properties dialog box, the ____ text box allows you to assign your own name to a group of radio buttons.

A. Visual B. Group name C. Button group D. Grouping

Computer Science & Information Technology

You use Microsoft's free Office Presentation Service to deliver a presentation over the ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology