classdef Person
  
  properties
    name = '';
    telnr = 0;
  end  % properties
  
  methods 
    function o = Person( name, telnr )
      o.name  = name;
      o.telnr = telnr; 
    end
    
    function print( o )
      fprintf( 'Name: %s, Tel.Nr.: %g\n', ...
               o.name, o.telnr );
    end
    
     function info( o )
      fprintf( 'Telefonnummer %g gehört zu %s\n', ...
               o.telnr, o.name );
    end
   
  end  % methods
  
end  % classdef