Draw a class diagram representing a book defined by the
following statement:
"A book is composed of a number of parts, which in turn
are composed of a number of chapters. Chapters are composed of
sections." Focus only
on classes and relationships.
Draw an object diagram representing the first part of the textbook ("Getting
Started"). Make sure that the object diagram you draw is consistent
with the class diagram of Exercise 1.
Extend the class diagram of Exercise 1 to include the following attributes:
a book includes a publisher, publication date, and an ISBN
a part includes a title and a number
a chapter includes a title, a number, and an abstract
a section includes a title and a number
Consider the class diagram of Exercise 3. Note that the Part,
Chapter and Section
classes all include a title and a number attribute. Add an abstract class
and a generalization relationship to factor out these two attributes into
the abstract class.
(For the bored) A book can consist of more than one volume, each volume
can have different authors and different dates of being published. There can
be a translation of a book and more than one edition. The author can be a
corporate author (for example, The Museum of Modern Art in New York) or be
a pseudonym (for example, Kurt Tucholsky published under the name Theobald
Tiger and Peter Panter) or a married name. Extend your class diagram to
cover these cases.
The URL pointing to your report is due in my mailbox by 8:00 am the morning
of your next exercise.