SUNY Geneseo Department of Computer Science


Object Oriented Programming Concepts

{Date}

CSci 141, Spring 2004
Prof. Doug Baldwin

Return to List of Lectures

Previous Lecture


Misc

Missing appendix for book

Course e-mail list has a different name:

Questions?

If "method" is executed by an object, what about "main"?

Reading Summary

Chapter 2

Program, implementor and client

Robot example -- e/g., drawing squares

Abstraction

Algorithms that are series of steps

Classes, methods, messages

Algorithms produce either side-effects or values

Abstraction also allows hiding values (member variables) as well as actions

An Example Abstraction

Cell phones

Software is very complicated

Another example:

"for all real numbers, x, x+1 > x"

Mini-Chess

An example object oriented system

[4-x-4 Board with Chess Pieces]

Play a game

What object oriented concepts did you notice in this game?

Next

Theory

Read 3.1 - 3.3, 3.5, 3.6


Next Lecture