| CS 1371 Dept. Presents: |
Class Orchestra
| Method Summary | |
|---|---|
| Orchestra ( data ) Constructor that creates a Orchestra object |
|
The string representation of the Orchestra object "Orchestra with _ instruments" where the blank is filled in with the number of MyInstrument objects in the Orchestra object |
|
| BFPlay ( ) Plays each of the instruments using a breadth-first traversal |
|
| DFPlay ( )
Plays each of the instruments using a depth-first traversal |
|
|
inOrderPlay ( ) Plays each of the instruments using an in-order traversal |
|
|
preOrderPlay ( ) Plays each of the instruments using a pre-order traversal |
|
| instrumentCounter (orch, strInstrType)
Counts the number of MyInstrument objects in the Orchestra with the specified type |
|
| Method Detail |
|---|
orch = Orchestra( data )
Creates an Orchestra object
If data is an Orchestra object, the constructor will just make a copy of it.
orch = Orchestra( ) will create an empty Orchestra object