Change Effect
Change method attribute value Apply 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 method public, protected,
or private access settings affect access to existing
objects.
Changes to the access lists do not change existing
instances. However, if you add classes to the access
list, instances of those classes have access to this
method. If you remove classes from the access list,
objects of those classes no longer have access to this
method.
- Sealed — If changed to true and existing
subclasses already have defined the method,
MATLAB returns an error because the new class
definition cannot be applied to existing subclasses.
Updates to Event Definitions
Change Effect
Add event Existing objects of the class support the new event.
Change event name New event name is visible to existing objects of the
class. MATLAB:
- Does not update existing metaclass objects
- Does update newly acquired metaclass objects
- Does not update listeners to use new event name
Remove event Existing objects no longer support deleted event.
Automatic Updates for Modified Classes