Professional Documents
Culture Documents
Assignment Class, Object and Use Case Diagrams: Task 01: Aggregation Vs Composition (10 Scores)
Assignment Class, Object and Use Case Diagrams: Task 01: Aggregation Vs Composition (10 Scores)
Assignment Class, Object and Use Case Diagrams: Task 01: Aggregation Vs Composition (10 Scores)
Answer:
City - Tree:The whole is City, the part is Tree. The Tree is a part of City,
but it also can live independently.
Car - Engine:The whole is Car, the part is Engine. The Engine is a part of
Car, but it also can live independently.
Hand - Finger:The whole is Hand, the part is Finger. The Finger is a part of
Hand, but it exists only as part of the Hand.
Bird - Wing:The whole is Bird, the part is Wing. The Wing is a part of Bird, but it
exists only as part of the Bird.
2. Draw Class diagram for library system with following classes: Member,
Librarian, Teacher, student, copy, and book.
Answer:
Describe each of the following elements what they mean (one word or a
short sentence)
Attributes:Variables.
Methods:Behaviour features of class.
Relationships:A state of relatedness between class.
Multiplicity:The specification of how many instances a class can
have.
5. Develop the Use Cases for East China University of Technology (ECUT)
Registration System.
– Professors indicate which courses they will teach on-line
– When the registration is completed, the system sends information to the billing
system
– Professors can obtain course rosters on-line
– Tour Group customers are those who have made reservations through a tour
operator in advance, while Individual customers make their reservations directly
with the hotel
– Both types of customers can book, cancel, check-in and check-out of a room by
phone or via the Internet