classdef creating_method_handle < handle
  methods
    function foo (self)
      1;
    end
  end
end


%!test
%! obj = creating_method_handle;
%! fcn_handle = str2func('@creating_method_handle/foo');
%! fcn_handle (obj);
