6. Class diagrams Flashcards

1
Q

Figure 1 shows the class diagram for a company that rents films. Name the type of links shown in figure 1

A

Whole-part
Gen-spec
Association

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Explain fully what these three relationships tell you

A

Whole-part - rental shop will have one or more film copies in it, a film copy will reside in only one video rental shop
Gen-spec - film-copy is a type of film, and it will inherit all attributes and operations from film
Association - a customer may make none or many reservations, one reservation is for one customer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly