MATLAB Object-Oriented Programming

(Joyce) #1
Change Effect
Change ConstructOnLoad Loading classes obeys the current value of
ConstructOnLoad.
Change HandleCompatible Newly created objects can have different class hierarchy
than existing objects.
Change Hidden Appearance of class in list of superclasses and access by
help function can change
Change InferiorClasses Method dispatching for existing objects can change.
Make Sealed = true Existing subclass objects return errors when accessed.

Updates to Property Definitions


When you change the definition of class properties, MATLAB applies the changes to
existing objects of the class.


Change Effect
Add property Adds the new property to existing objects of the class.
Sets the property values to the default value (which is
[] if the class definition does not specify a default).
Remove property Removes the property from existing objects of the class.
Attempts to access the removed property fail.
Change property default value Does not apply the new default value to existing objects
of the class.
Move property between
subclass and superclass

Does not apply different default value when property
definition moves between superclass and subclass.

Automatic Updates for Modified Classes
Free download pdf