rec16 - CS 177 Week 16 Recitation Slides Object Oriented...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
1 CS 177 Week 16 Recitation Slides Object Oriented Programming
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 ANY QUESTIONS?
Background image of page 2
Procedural Abstractions Define tasks to be performed Break tasks into smaller and smaller pieces Until you reach an implementable size Define the data to be manipulated Design how functions interact What's the input What's the output Group functions into components (“modules" or "classes") Write the code Verb-oriented 3
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Object-oriented Programming First goal: Model the objects of the world Noun-oriented Focus on the domain of the program Phases Object-oriented analysis: Understand the domain Define an object-based model of it Object-oriented design: Define an implementation Design the solution Object-oriented programming: Build it 4
Background image of page 4
Birth of Objects Objects as models of real world entities Objects as Cells Independent, indivisible, interacting—in standard ways Scales well Complexity: Distributed responsibility Robustness: Independent Supporting growth: Same mechanism everywhere Reuse: Provide services, just like in real world 5
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
from Scratch: SlideShow Let’s build a program to show a slide show. It shows a picture. Then plays a corresponding sound. We’ll use the introduced-but-never-used blockingPlay() to make the execution wait until the sound is done. 6
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/22/2012 for the course CS 177 taught by Professor Staff during the Fall '08 term at Purdue University-West Lafayette.

Page1 / 21

rec16 - CS 177 Week 16 Recitation Slides Object Oriented...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online