CS 4448 - Spring 1998
Object-Oriented Programming and Design
Lecture 8.2
Talks
Discussion of HW5 & 6 Designs
Continue going over good and bad design issues.
- Interaction Diagrams should show methods as boxes on the lines
- initialize instance method gets called by the new class method
since the class method is the wrong type, a class of instead of an
instance of class, and can only call methods not directly manipulate
instance variables.
- Your design needs to describe each Methods interface - calling
parameters, will those parameters be modified and is the class
changed/any side effects, what is returned. In C++ this translates
into where is const used.
- Do a good job on testing
- Discussion of future vs. current design needs.
Adam Jonathan Griff,
computer@griffmonster.com
Copyright © University of Colorado. All rights reserved.
Revised: March 6, 1998