15 Pts
CSc 320 Homework 4
Due: Sept 21
Please answer the following questions from the end of Chapter 5:
4, 5 and 10.
Do Exercises E.3 and G.3.
Write up your answers, and any discussion associated with
your diagrams, using your favorite word processing program, and
send them here along with your diagrams.
As before, please send your diagrams as images since native formats will
differ.
There are several slots
for sending diagrams, though you may well have them all in one.
- Contrast the following sets of terms: object, class, method, attribute, superclass, subclass, concrete class, abstract class.
- Give three examples of derived attributes that may exist on a class diagram. How would they be denoted on the class diagram?
- Give two examples of aggregation, generalization, and association relationships. How is each type of association depicted on a class diagram?
- Draw a class diagram for each of the following situations:
- A department store has a wedding registry. This registry keeps information about the customer (usually the bride), the products that the store carries, and the products for which each customer registers. Customers typically register for a large number of products, and many customers register for the same products.
- Examine the class diagrams that you created for exercise E. How would the models change (if at all) based on these new assumptions?
- The store would like to keep track of purchased items.