MATLAB: How to change the default Value of superclass property in subclass

classMATLABobject-orientedoop

Is there any way to change the default value of a super class property in the property block of a subclass? I know I can change it in the constructor method, but the semantics of that doesn't seem right. Also making the property abstract in the super class is inconvenient because then you can't really directly instantiate the superclass. is there any solution to this?

Best Answer

Abandon this and set the value of CalculateMode in the constructor. It's the appropriate thing to do.