developing an oo solution wmc greenlake may 5, 2006
DESCRIPTION
Developing an OO Solution WMC GreenLake May 5, 2006. Joe Kmoch Milwaukee Public Schools jkmoch.com/apcs [email protected]. Agenda. Identify Objects (Classes) Identify Operations (Responsibilities) Identify Relationships (Collaborations) Develop Scenarios Implement OO Design. - PowerPoint PPT PresentationTRANSCRIPT
Developing an OO SolutionWMC GreenLake
May 5, 2006
Joe Kmoch
Milwaukee Public Schools
jkmoch.com/apcs
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