Posts Tagged ‘Subclass’
Calling Superclass Methods on Subclass Objects
April 18th, 2010 No Comments Posted in Documents
Calling a Superclass Constructor
If you create a subclass object, MATLAB calls the superclass constructor to initialize the superclass part of the subclass object. By default, MATLAB calls the superclass constructor without arguments. If you want the superclass constructor called with specific arguments, explicitly call the superclass constructor from the subclass constructor. The call to the superclass constructor must come before any other references to the object. Read More