In: Computer Science
Model a book 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.” First, focus only on classes and associations.
Add multiplicity to the class diagram you produced.
Refine the class diagram to include the following attributes:
• Book includes a publisher, publication date, and an ISBN
• Part includes a title and a number
• Chapter includes a title, a number, and an abstract
• Section includes a title and a number
Consider the refined class diagram. Note that the Part, Chapter, and Section classes all include a title and a number attribute. Use inheritance to factor out these two attributes .
Rectangles are used for Class. Class Name should start from Capital letter and Name should be singular.
Diamond are the representation for Aggregation. * is used for Multiplicity. I have provided the Class diagram for each level for your understanding.
Level 1 is high level , when you have identified classes and their relationship.
Level 2 is refined version of level 1 where you have to show Attributes.
Level 3 is refined version of level 2 where you have to use inheritance for Title and Number attributes.
Please rate your answer. Thanks