Skip chapter 22 unless you really want to read it.
It has some good practical advice on selecting tools.
It also quotes three ways to use diagrams:
**** Focus on
Generalization
on pages 410 and 411.
Any sub is a special kind of super
- +++ Notice [---|>] the form of the arrow head.
- Notice:-
- Special classes have all the properties of the general classes.
- Special classes are more complex than the general ones.
- Special classes add attributes and operations to the general class.
- Special versions of operations override the general versions.
- *** When sub--|>super is useful.
- * Make super classes abstract (normally)
- ** Include super class name in subclass name
- ++ refactoring: create a superclass to reduce repeated code.
(note): Look at these changes to requirements to help understand the
future design decisions in the book. I will not test you on your knowledge of NextPoS or
Monopoly. You may, if you wish, ask questions on this chapter.
Exercise, if time -- THe CSUSB Inventory
Recall or reconstruct a doamin model based on the objects in the classroom...
what would you add to it if we included objects found in other rooms on campus?
Quiz 7
[ Q15sample.gif ]
Project Work 7: Second complete set of models due next Tuesday.
[ w7.html ]
(This is a big piece of work start working now)
Questions and Answers Generalization etc
[ 15q.html ]
Next -- More GRASP
[ 16.html ]
Review Questions
[ 15r.html ]
Standard Definitions