MATLAB Object-Oriented Programming

(Joyce) #1

Attribute Name Class Description


SetAccess enumeration


default = public

public — unrestricted access

protected — access from class or
subclasses

private — access by class members only
(not from subclasses)

immutable — property can be set only in
the constructor.

See “Mutable and Immutable Properties”
on page 8-22

List classes that have set access to this
property. Specify classes as meta.class
objects in the form:


  • A single meta.class object

  • A cell array of meta.class objects.
    An empty cell array, {}, is the same as
    private access.


See “Class Members Access” on page 12-
28

SetObservable logical


default = false

If true, and it is a handle class property,
then you can create listeners for access to
this property. The listeners are called
whenever property values are modified.
See “Property-Set and Query Events” on
page 11-17

Transient logical


default = false

If true, property value is not saved when
object is saved to a file. See “Save and
Load Process for Objects” on page 13-2
for more about saving objects.

Framework attributes Classes that use certain framework base classes have framework-
specific attributes. See the documentation for the specific base class
you are using for information on these attributes.


Property Attributes
Free download pdf