Release date: Tuesday, 16.04.13 - Due date: Monday, 22.04.13, 11:59
Give us four examples of a part-whole relationship, two examples of an aggregation and two examples of a composition relationship. Argue for each of the four cases why it is an aggregation or an composition respectively. (Such an argument would consist of the generic criterion for choosing the respective type of association and one or two sentences arguing why the criterion applies here.)
[Optional, 0 points]: Can you find an example where it depends on the context whether it is an aggregation or composition.
Create a class diagram for the solution to Assignment 1: Object Oriented Programming. For your convenience you may find a skeleton of the solution here. We already started with the work. You find the result in the project
A2T02_ReverseUniversity.astah in your SVN. Add the missing classes
Address, CollectiveIdentity, CollectorUtil, FastGrowingNumberGenerator, NumberGenerator and
Professor at the same level of detail.
Explain for each of the following graphical elements what they mean (one word or a short sentence):
Consider the following object diagrams (on the left) and class diagrams (on the top). Check for each object diagram the class diagrams which could be an instance of it (for example in form of a list).
The following three class diagrams model the relationship of a president with his country. The models are getting increasingly more complex, i.e. B is more complex than A and C is more complex than B. In general you should keep your models as simple as possible, so there have to be reasons for creating more complex diagrams.
Please do the following:
Give us for each of the four class diagrams above:
We claim that the two first diagrams are equivalent.