Consider two simple classes, where one inherits from the other:
First class:
classdef Example_Class_1 < handle properties Property1 Property2 endend
Second class:
classdef Example_Class_2 < Example_Class_1 properties Property3 endend
Now, if I create an Example_Class_2 object, its properties are listed as follows:
Example_Class_2ans = Example_Class_2 with properties: Property3: [] Property1: [] Property2: []
Is there some alternative syntax I can use when defining Example_Class_2, such that Property1 and Property 2 (the inherited properties) appear before Property3 when an Example_Class_2 object is created?
Best Answer