|MATLAB Function Reference|
Establish inferior class relationship
inferiorto function establishes a hierarchy that determines the order in which MATLAB calls object methods.
inferiorto('class1', 'class2', ...)
invoked within a class constructor method (say
myclass.m) indicates that
myclass's method should not be invoked if a function is called with an object of class
myclass and one or more objects of class
class2, and so on.
A is of class
B is of class
C is of class
'class_c'. Also suppose the constructor
class_c.m contains the statement
e = fun(a, c) or
e = fun(c, a) invokes
If a function is called with two objects having an unspecified relationship, the two objects are considered to have equal precedence, and the leftmost object's method is called. So
fun(b, c) calls
fun(c, b) calls
© 1994-2005 The MathWorks, Inc.