|
|
|
| Here's how we can use this new Stack class:
Now, the caller knows nothing about Stack.Enumerator; s/he only needs to know about Enumerator. When run, this program outputs the same values as before: 0 1 4 9 16 25 36 49 64 81 |
|
This page was last modified on 02 October, 2007 |