MATLAB Object-Oriented Programming

(Joyce) #1
Change Effect
Change event attribute value Apply changes to existing objects of the class.

Some cases require transitional steps:


  • ListenAccess — Changes to event public,
    protected, or private listen access settings affect
    access to existing objects.


Changes to the access list do not change existing
objects. However, if you add classes to the access
list, objects of those classes can create listeners for
this event. If you remove classes from the access list,
objects of those classes are not allowed to create
listeners for this event.


  • NotifyAccess — Changes to event public,
    protected, or private notify access settings affect
    access to existing objects.


Changes to the access list do not change existing
objects. However, if you add classes to the access
list, instances of those classes can trigger this event.
If you remove classes, objects of those classes are
not able to trigger this event.

See Also


Related Examples



  • “Use of Editor and Debugger with Classes” on page 5-49


5 Class Definition—Syntax Reference

Free download pdf