Answer the following questions true (T) or false (F)
1. Patterns are so general they need not make assumptions about the application to which it is being applied.
2. Patterns can help organize the presentation and understanding of ideas about software.
1. False
Explanation:
To be substantive, each pattern must make assumptions about its application. The iterator pattern applies to very nearly all containers, but to apply the iterator pattern to a container, the iterator designer must know the structure of the container. You don’t create efficient random access iterators for a doubly linked list.
2. True
Explanation:
Consider the types of iterator and the several iterator related member functions of the containers. If we had different names and concepts for what we now call begin() and end() member functions, and so on, we might be overwhelmed. With the organization of the iterator patterns, it is easier to remember the details. In fact the iterator pattern is part of a larger pattern, the Container-Iterator pattern.
You might also like to view...
Index __________________ is a routine task that must be performed to ensure the optimal health of the database and query performance.
Fill in the blank(s) with the appropriate word(s).
Which of these is not a typical definition of privacy found in general dictionaries?
A. seclusion B. secrecy or concealment C. freedom from intrusion D. freedom to own obscene material
A(n) ________ is a box that is a combination of a list box and a text box
Fill in the blank(s) with correct word
The ________ of a business database consists of the database tables and their data
Fill in the blank(s) with correct word