ans =Quality AssuranceClearing the class results in the assignment of a new instance of MyProject to the
ProjectInfo property.clear MyProject
MyProject.ProjectInfo.Departmentans =EngineeringYou can assign an instance of the defining class as the default value of a property only
when the property is declared as ConstantConstant 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