CS 40 - Lecture 10

Cover page image

Cay S. Horstmann

What Do You Do?

Lecture 9 Recap

???

Alice (From Lecture 1)

???

Concept 1: Programming

???

Concept 2: Objects and Methods

???

Concept 3: Design

???

Concept 4: Decisions

???

Concept 5: Repetition

???

Match Concepts with Alice Samples

Concept draw line in
ActiveLecture.org
Alice Program
Put methods with responsible objects Evil step sister eats closest cookie
Simple loop Valley of the toasters
Top-down design T. Rex eats toaster when it is close
if-else decisions Toaster hops around circle
while loop

Concept 6: Implementing and Calling Methods

???

Concept 7: Variables

???

Concept 8: Classes

???

Match Concepts with Alice Samples

Concept draw line in

ActiveLecture.org

Alice Program
Parameters Voting machine
Local variables Combo lock
Instance variables "Eat cookie" in homework 2
Classes Spider robot walk

Reminders

???