ans =
Quality Assurance
Clearing the class results in the assignment of a new instance of MyProject to the
ProjectInfo property.
clear MyProject
MyProject.ProjectInfo.Department
ans =
Engineering
You can assign an instance of the defining class as the default value of a property only
when the property is declared as Constant
Constant Properties — No Support for Get Events
Constant properties do not support property PreGet or PostGet events. MATLAB issues
a warning during class initialization if you set the GetObservable attribute of a
Constant property to true.
See Also
Related Examples
- “Static Data” on page 4-2
More About
- “Named Values” on page 14-2
15 Constant Properties