function. When you call plot with a timeseries object as an input argument, MATLAB
calls the timeseries class method named plot.
To call the nonoverloaded function, use the builtin function.
Overriding
Overriding means redefining a method inherited from a superclass. MATLAB dispatches
to the most specific version of the method. That is, if the dominant argument is an object
of the subclass, then MATLAB calls the subclass method.
To control class dominance, use the InferiorClasses attribute.
See Also
Related Examples
- “Overload Functions in Class Definitions” on page 9-34
- “Object Precedence in Method Invocation” on page 9-47
- “Operator Overloading” on page 17-47
See Also