Question: Problem 3: Suppose that a book is defined by following statement: A book is composed of a number of parts, which in turn are composed
Problem 3: Suppose that a book is defined by 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". Part (a): Draw a class diagram representing the book. Focus first on classes and relationships. Also, add multiplicity to the class diagram. Part (b): Extend the class diagram of part (a) 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. Part (c): Consider the class diagram of part (b). Note that the Part, Chapter, and Section classes all include title and number attributes. Add a class and an inheritance relationship to factor out these two attributes into the class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
