I have a class that inherits from multiple superclasses, and I would like to get the methods that the class has. Naively using methods() returns methods from the class I’m working with as well as superclass methods, but I’m not interested in the superclass methods.
Any idea how to do this? I couldn’t find anything in MATLAB documentation.
Thanks!
If your subclass doesn’t reimplement any of the methods of the superclasses (or if you’re fine with ignoring reimplemented methods), you can use the functions METHODS and SUPERCLASSES to find a list of subclass methods that aren’t also methods of any of the superclasses. For example: