%
%  Node, 4.2.2: Knoten einer einfach verketteten Liste
%
classdef Node < handle

   properties
     next = Node.empty;
     data = [];    % Daten 
   end     % properties

   methods
     function obj = Node( varargin )
       obj.next = Node.empty;
       if( nargin > 0 )
         obj.data = varargin{1};
       end
     end
     
     function delete( obj )
      fprintf( 'delete Node: Data = %g \n', obj.data );
     end    
   end   % methods  
   
end
