1
CSE 331
Guidelines for Class Design
slides created by Marty Stepp based on materials by M. Ernst, S. Reges, D. Notkin, R. Mercer, Wikipedia http://www.cs.washington.edu/331/
CSE 331 Guidelines for Class Design slides created by Marty Stepp - - PowerPoint PPT Presentation
CSE 331 Guidelines for Class Design slides created by Marty Stepp based on materials by M. Ernst, S. Reges, D. Notkin, R. Mercer, Wikipedia http://www.cs.washington.edu/331/ 1 What is class design? class design : Deciding the contents of a
1
slides created by Marty Stepp based on materials by M. Ernst, S. Reges, D. Notkin, R. Mercer, Wikipedia http://www.cs.washington.edu/331/
2
3
4
5
6
isSafe, not isUnsafe. isEmpty, not hasNoElements.
7
8
9
10
11
12
13
14
15
.getSergeant(ser).getPrivate(name).digFoxHole();
16
MY FINAL PROJECT MY FINAL PROJECT MY FINECT PROJAL An application A poor decomposition (parts strongly coupled) A better decomposition (parts weakly coupled)
17
18
general enough to allow for all correct implementations.
developer working on this class would want.
19
20
21
22
public Counter(Character ch)
23
24