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...
This is a version of VoIP. It is designed to make and deliver phone calls.
What will be an ideal response?
A form is an excellent example of ____________________ content because, as the user fills out the form, feedback can be returned, such as the availability of window seats on a particular airplane flight or whether or not certain colors or sizes of clothing items are available for purchase.
Fill in the blank(s) with the appropriate word(s).