In Section 5.3 we said that a class that stores data for you should also manipulate it for you, as appropriate. One might conclude from this statement that a HashSet, for example, should not just store data, but should manipulate the data for you somehow. For example, consider a HashSet containing a collection of Person objects. The client of such a class might find it necessary to extract just the names of the people and put them in a new HashSet. Ideally the HashSet class would have a method to do this extraction for you. However, there are an unlimited number of ways that the Person objects might be manipulated and so you cannot fill the HashSet class with methods covering all possible cases.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.