In the above diagram what should the multiplicities between

In the above diagram, what should the multiplicities between the two classes be? 0..1 to 0..1 *to 1 * to * 1..*to 1 1 to 1..* If I wanted to add the ability to indicate that a movie can have a sequel, what would be the best way to do it? Create a class Sequel with an association to Movie Create a symmetric reflexive association on Movie Create an asymmetric reflexive association on Movie Create another association between Movie and Actor Create a symmetric reflexive association on Actor For your answer to question 16, what would the most reasonable multiplicities be? 1 to * * to 1 * to 1..* 1 ..* to 1 1 to 1..*

Solution

15) c

the relation between actor and movie is many to many because an actor can act in any no of movies and a movie can be done by any no of actors.

16) b

17) e

relation between movie and sequel is 1 to many because a movie can have many sequels

 In the above diagram, what should the multiplicities between the two classes be? 0..1 to 0..1 *to 1 * to * 1..*to 1 1 to 1..* If I wanted to add the ability to

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site