Change Effect
Change property attribute
value
Applies changes to existing objects of the class.
Some cases require transitional steps:
- Abstract — Existing objects of a class that becomes
abstract cannot be updated. Delete these objects. - Access — Changes to the public, protected, or
private property access settings affect access to
existing objects.
Changes to the access lists do not change existing
objects. However, if you add classes to the access
list, instances of those classes have access to this
property. If you remove classes from the access list,
objects of those classes no longer have access to this
property.
- Dependent — If changed to true, existing objects
no longer store property values. If you want to query
the property value, add a property get method for
the property. - Transient — If changed to true, objects already
saved, reload this property value. If changed to
false, objects already saved reload this property
using the default value.
Updates to Method Definitions
When you change the definition of class methods, MATLAB changes the affected class
member in existing objects as follows.
Change Effect
Add method You can call the new method on existing objects of the
class.
Modify method Modifications are available to existing objects.
Remove method You can on longer call deleted method on existing
objects.
5 Class Definition—Syntax Reference