Another object-oriented program

3/29/99


Click here to start


Table of Contents

Another object-oriented program

The object of this program

The data structure

What classes do we need?

We can already declare...

... but we can do better

The revised hierarchy

What is a Source?

Declaration of Counter

Definition of Counter

We can already use our Counter class

What does a Conduit do?

Memory management

Declaration of Conduit

Definition of Conduit

Class Filter

Filter declaration

How does a Filter work?

Definition of Filter

What should a Sieve do?

Using a Sieve

Declaring class Sieve

Defining class Sieve

The data structure

Definition of Sieve::next

Observations

More observations

Understanding object-oriented programs

Homework (due Monday)

Author: Andrew Koenig

Email: ark@research.att.com

Home Page: http://www.research.att.com/info/ark