# Class diagram with abstract class and generalization relationship

**URL:** <https://forums.visual-paradigm.com/t/class-diagram-with-abstract-class-and-generalization-relationship/11234>\
**Category:** UML\
**Created:** [December 30, 2009, 1:24am UTC](https://forums.visual-paradigm.com/t/class-diagram-with-abstract-class-and-generalization-relationship/11234 "2009-12-30T01:24:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaymcfly](https://avatars.discourse-cdn.com/v2/letter/j/d6d6ee/32.png) [@jaymcfly](https://forums.visual-paradigm.com/u/jaymcfly)\
**Post date:** [December 30, 2009, 8:27am UTC](https://forums.visual-paradigm.com/t/class-diagram-with-abstract-class-and-generalization-relationship/11234/1 "2009-12-30T08:27:46Z")

</div>

I am doing some revision for an exam last week using past papers where I have encountered difficulties answering the following question:

Draw a class diagram representing a book defined by the following statement " A book is composed of a number of parts, which are in turn composed of a number of chapters. Chapters are composed of sections. A book includes a publisher, publication date, and an ISBN. A part includes a title and number. A chapter includers a title, a number, and an abstract. A section includes a title and number." Note that 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.

Below is a copy of the class diagram that I have attempted although I am unsure if the abstract class and generalization relationship are set correctly and I would therefore appreciate any feedback or help that you can offer me. Thanks.   
[1A.bmp](https://forums.visual-paradigm.com/uploads/default/original/2X/e/eeec29795e6c3c01e91cf928f3c50878da8433b1.bmp)

---

<div class="post-metadata">

**Author:** ![jaymcfly](https://avatars.discourse-cdn.com/v2/letter/j/d6d6ee/32.png) [@jaymcfly](https://forums.visual-paradigm.com/u/jaymcfly)\
**Post date:** [December 30, 2009, 10:23am UTC](https://forums.visual-paradigm.com/t/class-diagram-with-abstract-class-and-generalization-relationship/11234/2 "2009-12-30T10:23:55Z")

</div>

I have now added the bitmap showing my attempt at the class diagram which was not working when i tried to include as an image. Thanks
