SUNY Geneseo Department of Computer Science


Algorithm Design with Objects

{Date}

CSci 141, Spring 2005
Prof. Doug Baldwin

Return to List of Lectures

Previous Lecture


Misc

Hand out Lab 2

Questions?

Reading Summary

Chapter 2

Abstraction

Value-producing algorithms vs side-effect producing algorithms

Subclasses, e.g., drawing robots, show different things you can do

Preconditions and postconditions, contract between clients and implementors re interface to algorithm

Implementor deals with "dirty bits" inside algorithm, client should see clean, simple interface

Mini-Chess

Examples of object-oriented concepts

[16 Chess Pieces on a 4-by-4 Board]

What concepts from the reading were there in this game?

Next

Theoretical Reasoning about Algorithms

Read Sections 3.1 - 3.3, 3.6


Next Lecture