90 likes | 165 Views
Developing an OO Solution WMC GreenLake May 5, 2006. Joe Kmoch Milwaukee Public Schools jkmoch.com/apcs joe@jkmoch.com. Agenda. Identify Objects (Classes) Identify Operations (Responsibilities) Identify Relationships (Collaborations) Develop Scenarios Implement OO Design.
E N D
Developing an OO SolutionWMC GreenLakeMay 5, 2006 Joe Kmoch Milwaukee Public Schools jkmoch.com/apcs joe@jkmoch.com
Agenda • Identify Objects (Classes) • Identify Operations (Responsibilities) • Identify Relationships (Collaborations) • Develop Scenarios • Implement OO Design
Your First Task • Put a rectangle around each noun • Encircle each action verb
Objects (Candidates) • nouns
Operations (Responsibilities) • Verbs • ID what can be done to objects or • ID what objects can do for themselves • ID who is responsible for doing what
Relationships (Collaborations) • What objects need to know about what other objects do
Develop Scenarios • How objects interact • Right objects? Operations? Relationships? • Common and uncommon scenarios • Possibly recognize new design requirements
Implementing OO Design • Design public interfaces • Design internal data representation • Implement public member functions • Test individual objects and member functions