TFH Berlin

TFH Berlin
Fachbereich Informatik
Medieninformatik
SA31: Systemanalyse / SWT1: Softwaretechnik 1
Wintersemester 2000/2001


Lab 3: Class Diagrams


  1. 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.
  2. 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.
  3. Extend the class diagram of Exercise 1 to include the following attributes:
  4. 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.
  5. (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.


Copyright 2000, 2001 Prof. Dr. Debora Weber-Wulff
All rights reserved.
Questions or comments: <weberwu@tfh-berlin.de>
Letzte Änderung: 16.09.01 - 23:31