R2009a
16-20
constructor for class C should not call the constructor for class A to initialize properties.
The call to initialize class A properties should be made from class B.
Compatibility Considerations
If you define classes in which subclass constructors call indirect superclass constructors,
MATLAB now issues an error when you attempt to create an instance of the subclass.
Call Only Direct Superclass from Constructor for information on how to correctly code
subsclass constructors.
Comments to this Manuals