I have two subclasses:
- Line
- Arc
Their objects will be creating a path by appending them on their end. These have their own "plotCurve" methods. I want to store these objects in an array in order such as:
path = [line1,line2,arc1,line3,arc2,arc3,line4,arc4,arc5...];
(I think "path" should be the object of superclass "Path") when I code something like;
for i=1:size(path)
path(i).plotCurve;
hold on
end
the result should be shown. I should be able to see the whole path. (So, when the object of "Line" comes "plotCurve" method should be run and same for Arc objects).