90 likes | 236 Views
Lecture #3 Agenda. Cell phones off & name signs out Questions? Activity Problem solving. I have a question for you!. The question was: What did you have for breakfast today?. Activity. The goal of this short activity is to demonstrate two things: objects have behaviors
E N D
Lecture #3Agenda • Cell phones off & name signs out • Questions? • Activity • Problem solving
I have a question for you! • The question was: What did you have for breakfast today?
Activity The goal of this short activity is to demonstrate two things: • objects have behaviors • sending message to objects can trigger those behaviors
When I tell you to… you should… START begin doing jumping jacks STOP stop jumping, and stand normally anything else do nothing Activity details3 volunteers, a.k.a. objects When I tell you to… you should… anything at all do nothing When I tell you to… you should… START start counting slowly, 0…1…2… etc, but always starting at zero STOP stop counting, but remember where you left off CONTINUE keep counting up from where you left off anything else do nothing
Activity Review • Why did we do this activity? • What is an object?
Problem solving • How do we go about solving a problem? • Simplification through abstraction is key. • Essay writing process • A process of iterative refinement • Apply same idea to writing software
Apply same idea to developingsoftware solutions: Executable Model Conceptual Model
The conceptual model • A model of the problem domain • Problem domain consists of: • objects • properties • capabilities • relationships between objects
A more refined picture(iterative refinement in action!) Problem Domain Compilation MACHINE EXECUTABLE PROGRAM CODE Executable Model Initial Conceptual Model Iterative refinement of model