MATLAB Object-Oriented Programming

(Joyce) #1
If the saved object derives from multiple superclasses that have private properties with
same name, the struct contains only the property value of the most direct superclass.

For information on how to implement saveobj and loadobj methods, see “Modify the
Save and Load Process” on page 13-16.

Changes to Property Validation

If a class definition changes property validation such that loaded property values are no
longer valid, MATLAB substitutes the currently defined default value for that property.
The class can define a loadobj method or converter methods to provide compatibility
among class versions.

For information on property validation, see “Validate Property Values” on page 8-24

See Also


Related Examples



  • “Object Save and Load”


13 Saving and Loading Objects

Free download pdf