MATLAB Documentation for OOP
(For reference by students)


Class Orchestra

Method Summary
  Orchestra ( data )

          Constructor that creates a Orchestra object

  char ( )

          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

Orchestra

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


Got comments\feedback\suggestions\complaints\anything whatsoever? Shoot the webmaster an email!

Website created & maintained by Shardul Bhatia and Wen Eu Cheah