

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


2/9/2009 Dr. Paul C. Grabow
3.1 Total orderings (special topic) 3.2 Operator overloading (special topic) 3.4 Importance of encapsulation (everything) 3.5 Analyzing the quality of an interface (everything) 3.6 Programming by contract (everything) 3.6 Unit testing (we have already done this in lab) 2/9/2009 Dr. Paul C. Grabow
“Tamper‐proof” Well‐behaved
Ordered Unique Cohesive Complete
2/9/2009 Dr.^ Paul^ C.^ Grabow
A programming language is necessary but not sufficient Design principles should guide DD esignsi Use of a programming language (not vice versa)
2/9/2009 Dr. Paul C. Grabow
Use mutators sparingly (111)
Onlyl gets a valuel Does not create a side effect
Not have direct access to data within the object (109) Be given a address of data from within the object (112)
2/9/2009 Dr. Paul C. Grabow
Do what it is supposed to do and nothing more
The same way each time that it is called
The values of its parameters 2/9/2009 Dr. Paul C. Grabow