Hello everyone, i am new to the OOP in Matlab.
I have a superclass SimpleList with the property set, which is an array with any kind of data in it.
classdef SimpleList < handle % SimpleList
properties set(:,1) end methods . . . end end
And a subclass ObjList, where the array should only contain objects of a specific class
classdef ObjList < SimpleList % ObjectList
properties end methods . . . end end
My Question is: How do i validate the property in ObjList?
Thanks in advance!
Best Answer