To make that question a bit more concrete:
Suppose a parent class has methods "foo1" and "foo2".
Various child classes are descended from this parent class. Some of the children override foo1 whereas other children do not override it.
The question is, when the inherited method foo2 is called by a child, is there any way for foo2 to determine whether its calling child has overridden foo1?
I note that methods(obj,'-full') prints the required information to the command window, but unfortunately cellar=methods(obj,'-full') does not save that information in cellar. (Anyway, it seems pretty clumsy to be handling cell arrays of strings to get this information.)
Thanks for any suggestions.
Best Answer