MATLAB Object-Oriented Programming

(Joyce) #1
Access Attribute for Dynamic Properties

Using nonpublic Access with dynamic properties is not recommended because these
properties belong to specific instances that are often created outside of class methods.
The Access attribute of a of dynamic property applies to the class of the instance that
contains the dynamic property. The dynamic property Access attribute does not
necessarily apply to the class whose method adds the dynamic property.

For example, if a base class method adds a dynamic property with private access to an
instance, the private access applies only to the class of the instance.

For more information on dynamic property attributes, see meta.DynamicProperty. Use
the handle findprop method to get the meta.DynamicProperty object.

See Also


Related Examples



  • “Set and Get Methods for Dynamic Properties” on page 8-73

  • “Dynamic Property Events” on page 8-75

  • “Dynamic Properties and ConstructOnLoad” on page 8-80


8 Properties — Storing Class Data

Free download pdf