classdef test
    
    properties (GetAccess = 'private', SetAccess = 'private')
        wert;
    end
    
    methods (Static)
        function obj = test(wert)
            obj.wert = wert;
        end
        
        function x = errechne(obj)
            x=3+obj.wert;
        end
        
        %function obj = set.wert(obj, wert)
         %   obj.wert = wert;
        %end
        
        function obj = setze(obj, wert)
            obj.wert = wert;
        end
        
        function x = nimm(obj)
            x = obj.wert;
        end
    end
    
end