classdef fcn_handle_classdef < handle
  properties
    foo_handle;
  endproperties
  methods
    function foo(self)
      1;
    endfunction
    function bar(self)
      self.foo_handle = str2func('foo');
    endfunction
  endmethods
endclassdef

%!test
%! a = fcn_handle_classdef;
%! a.bar();
