MATLAB Documentation for OOP
(For reference by students)


Class MyApplication

Method Summary
  MyApplication ( data )

          Constructor that creates a MyApplication object

  char ( )

          The string representation of the MyApplication object which will include the contents of the undoStack in this format:

MyApplication:

undoStack: <undoStack value>

  display ( )

          Command window display of a MyApplication object
 

  doAction ( )

          Takes in an AppAction object, add it to the undoStack, and executes that action.
 

  undo ( )

          Pops off the top AppAction object from the undoStack, and undo that action.

 

Method Detail

MyApplication

ma = MyApplication( data )

Creates an AppAction object app

If the constructor is called with no parameters, it will create the undoStack.

If it is called with a paramater, it will assume that the parameter is a MyApplication object and will make a copy of it.

 


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

Website created & maintained by Shardul Bhatia and Wen Eu Cheah