Professional Documents
Culture Documents
Answer:
Two examples of aggregation:
(1)Computer and Cpu
(2) Sea and Fish
Two examples of composition:
(1)Building and Room
(2)People and Brain
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: Attributes is used to describe an instance object
Methods: Method can look at the implementation that deals with a
specific problem.
Relationships: Relationships are describe the connection of two
classes.
Multiplicity: Multiplicity specifies the number of instances of a class
that may be related to a single instance of the associated class.
– 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