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 .
You might also like to view...
Which of the following is an example of a subject?
a. Random access memory b. Computer science c. Binary notation d. File format
There are ________ types of Windows and OS X user accounts
A) four B) three C) five D) two
Which of the following ports is used for a secure browser connection for an online purchase?
A. 23 B. 80 C. 110 D. 443 E. 3389
Answer the following statements true (T) or false (F)
1. The efficiency of using a binary search tree to implement an ADT dictionary suffers when the tree loses its balance. 2. Numerous additions to and removals from a binary search tree will invariably destroy its balance. 3. You can search an AVL tree almost as efficiently as a minimum height binary search tree. 4. An AVL tree implementation of a dictionary is of equal difficulty to other implementations. 5. It can be proven that the height of an AVL tree with n nodes will always be very close to the theoretical minimum of log2(n + 1).