Exercise: software list
Sometimes it takes more than just a glance at the class diagram to spot problems with a design. Consider the following class type that might be used by a software vendor to list software titles that are available.
• There is nothing obviously wrong with this design. However, the users of this database might enter data that would cause problems, as shown in this table:
|Wordy||Macrosoft||Win, Mac||9.4, 6.7|
|Cherokee||Open Source||Linux, Solaris||10.4.5.2, 10.3.1.7|
|Inlook||Hinkysoft||Win, Linux, Palm OS||0.5|
• Revise the class diagram to correct any problems that you find in this design. Then draw the relation scheme for your corrected model.
Copyright © 2002–2006, by Tom Jewett. Links to this site are welcome and encouraged. Individual copies may be printed for non-commercial classroom or personal use; however, this material may not be reposted to other web sites or newsgroups, or included in any printed or electronic publication, whether modified or not, without specific permission from the author.