classdef method_function_handle_test

%  properties
%  
%  
%  end
  
  properties (Hidden, SetAccess = protected)
    hfoo = [];% handle to function
  end
  
  
  methods
  
    function self = method_function_handle_test ()
    
      self.hfoo = @foo;
    
    end
    
    function bar (self)
        
        self.hfoo (self);
        
    end
    
  end
  
  methods (Hidden, Access = protected)

    function foo (self)
      disp ('hello!');
    end
  
  end

end