I really like the new "arguments" way to pass values, including optional values. However, one really nice feature of the (old?) varargin approach was that you could just pass the whole thing along. But with arguments, if I have a subclass that only needs a couple options and is happy to pass the rest to its superclass, I don't see a great way to do that. I've found that I need to specifically implement every option and pass them specifically. I'm probably missing something, but would love to learn what. Thanks! -- David
댓글 수: 5
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/717495-passing-options-from-subclass-constructor-to-superclass#comment_1264435
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/717495-passing-options-from-subclass-constructor-to-superclass#comment_1264435
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/717495-passing-options-from-subclass-constructor-to-superclass#comment_1264455
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/717495-passing-options-from-subclass-constructor-to-superclass#comment_1264455
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/717495-passing-options-from-subclass-constructor-to-superclass#comment_1264520
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/717495-passing-options-from-subclass-constructor-to-superclass#comment_1264520
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/717495-passing-options-from-subclass-constructor-to-superclass#comment_1264625
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/717495-passing-options-from-subclass-constructor-to-superclass#comment_1264625
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/717495-passing-options-from-subclass-constructor-to-superclass#comment_1265630
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/717495-passing-options-from-subclass-constructor-to-superclass#comment_1265630
댓글을 달려면 로그인하십시오.