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)
Aggregation:
1.Wild geese and wild goose groups, because the wild goose group is
composed of wild geese, wild geese can leave the geese group
independent existence.
2.The car and the wheels, the car is the whole, and the wheels are the
parts. Even without the car, the wheels can exist separately from the car
and can be used by other cars.
Composition:
1.Window and button, because press twist is a part of the window, there is
a window, the natural button, the window disappeared, the button also
disappeared.
2.Geese and wings, because each goose has two wings, and the wings
can not live alone from the geese.
2. Draw Class diagram for library system with following classes: Member,
Librarian, Teacher, student, copy, and book.
Describe each of the following elements what they mean (one word or a
short sentence)
Attributes, state
Methods, behavior
Relationships, Refers to the interrelationship of class diagrams
Multiplicity.The specification of how many instances a class can
have is known as multiplicity.
– When the registration is completed, the system sends information to the billing
system.
– 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