Relationships
Review Questions
1. |
What is an iterator? |
2. |
Draw a UML diagram with three or more classes that have at least one of each kind of relationship: aggregation and composition. The classes should represent real-world concepts, and the relationships should attempt to represent reality. Write a couple of paragraphs explaining why there is a relationship of each kind there. |