i have class A with a method which is restricted to only be accessible by class B. When i am in class B i want to make sure that class A has this method. "ismethod" however does not work since the method is restricted. I think there should be some way to do this, since i am able to run the method from within B. I could do this with try & catch, but there must be a nicer solution to this.
methods (Static, Access = ?classB)
disp("hello, this is method1")
function flag = CheckForMethod1(anotherClass)
flag = ismethod(anotherClass, 'method1');