Add Matlab files

This commit is contained in:
Jean-Laurent Duchaud committed 2023-09-21 21:47:48 +02:00
1 parent fa0e7d1dea
commit 02bf2b2b41
5 files changed
+131

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
classdef Item < handle
% Do not edit or the goblin will one-shot you !
properties
name
sell_in
quality
end
methods
function obj = Item(name, sell_in, quality)
obj.name = name;
obj.sell_in = sell_in;
obj.quality = quality;
end
function disp(obj)
fprintf("%s, %d, %d\n", obj.name, obj.sell_in, obj.quality)
end
end
end