In the above diagram what should the multiplicities between
In the above diagram, what should the multiplicities between the two classes be? a) 0..1 to 0..1 b) * to 1 c) * to * d) 1..* to 1 e) 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? a) Create a class Sequel with an association to Movie b) Create a symmetric reflexive association on Movie c) Create an asymmetric reflexive association on Movie d) Create another association between Movie and Actor e) Create a symmetric reflexive association on Actor For your answer to question 16, what would the most reasonable multiplicities be? a) 1 to * b) * to 1 c) * to 1.. * d) 1..* to 1 e) 1 to 1..* In your answer to question 17, which of the following would be a role name a) A label \'sequel\' placed in the middle of an association line b) A label \'sequel\' placed in the class box, just below the name of the class c) A label \'isSequelOf placed in the middle of an association line d) A label \'isSequelOf placed at the end of an association line e) A label \'sequel\' placed at the end of an association line
Solution
1) * to * because one movie can many actors and one actor can have many womans.
2) Create a class sequel and make an association with Movie.
3) 1 to 1..* because the original movie could be just one and it can 1 or more sequels.
4) A label \'isSequelOf\' placed in middle of an association line.
