MATLAB Object-Oriented Programming

(Joyce) #1
class(a.PropHandle.Hprop)

ans =

double

a.PropHandle.Hprop = 7;

Attempting to make an assignment to the value class object property is not allowed:

a.PropValue.Vprop = 11;

You cannot set the read-only property 'PropValue' of ReadOnlyProps.

See Also


More About



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


8 Properties — Storing Class Data

Free download pdf