Behavior of property set methods
Info
This question is closed. Reopen it to edit or answer.
Show older comments
Dear all,
In the page at http://www.mathworks.co.uk/help/matlab/matlab_oop/property-access-methods.html#brgsek9-3 (subsection "Set Method Behavior") it is stated that a property set method is not invoked when specifying default values for that property in the class definition.
However in the page at http://www.mathworks.co.uk/help/matlab/matlab_oop/a-simple-class-hierarchy.html#f0-62926 (subsection "Set Function for Type Property") it is stated that the property set method for the property "Type" is invoked "whenever an attempt is made to set the Type property, even from within the class constructor function or by assigning an initial value."
Is this a contradiction?
Regards
Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!