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
Definition of Sieve::next
Observations
More observations
Understanding object-oriented programs
Email: ark@research.att.com
Home Page: http://www.research.att.com/info/ark