MATLAB Object-Oriented Programming

(Joyce) #1

Property Attributes


Attribute Name Class Description
AbortSet logical

default = false

If true, MATLAB does not set the
property value if the new value is the
same as the current value. MATLAB does
not call the property set method, if one
exists.

For handle classes, setting AbortSet to
true also prevent the triggering of
property PreSet and PostSet events.

See “Assignment When Property Value Is
Unchanged” on page 11-44
Abstract logical

default = false

If true, the property has no
implementation, but a concrete subclass
must redefine this property without
Abstract being set to true.


  • Abstract properties cannot define set
    or get access methods. See “Property
    Access Methods” on page 8-50.

  • Abstract properties cannot define
    initial values. See “Assigning a Default
    Value” on page 8-6.

  • All subclasses must specify the same
    values as the superclass for the
    property SetAccess and GetAccess
    attributes.

  • Abstract=true use with the class
    attribute Sealed=false (the default).


8 Properties — Storing Class Data

Free download pdf