developing an oo solution wmc greenlake may 5, 2006

9
Developing an OO Solution WMC GreenLake May 5, 2006 Joe Kmoch Milwaukee Public Schools jkmoch.com/apcs [email protected]

Upload: mackensie-marks

Post on 31-Dec-2015

15 views

Category:

Documents


0 download

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 Presentation

TRANSCRIPT

Page 1: Developing an OO Solution WMC GreenLake May 5, 2006

Developing an OO SolutionWMC GreenLake

May 5, 2006

Joe Kmoch

Milwaukee Public Schools

jkmoch.com/apcs

[email protected]

Page 2: Developing an OO Solution WMC GreenLake May 5, 2006

Agenda

• Identify Objects (Classes)

• Identify Operations (Responsibilities)

• Identify Relationships (Collaborations)

• Develop Scenarios

• Implement OO Design

Page 3: Developing an OO Solution WMC GreenLake May 5, 2006

Your First Task

• Put a rectangle around each noun

• Encircle each action verb

Page 4: Developing an OO Solution WMC GreenLake May 5, 2006

Objects (Candidates)

• nouns

Page 5: Developing an OO Solution WMC GreenLake May 5, 2006

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

Page 6: Developing an OO Solution WMC GreenLake May 5, 2006

Relationships (Collaborations)

• What objects need to know about what other objects do

Page 7: Developing an OO Solution WMC GreenLake May 5, 2006

Develop Scenarios

• How objects interact– Right objects? Operations? Relationships?

• Common and uncommon scenarios

• Possibly recognize new design requirements

Page 8: Developing an OO Solution WMC GreenLake May 5, 2006

Implementing OO Design

• Design public interfaces

• Design internal data representation

• Implement public member functions

• Test individual objects and member functions

Page 9: Developing an OO Solution WMC GreenLake May 5, 2006