Passing options from subclass constructor to superclass?
显示 更早的评论
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 个评论
Mohammad Sami
2021-1-15
See if the following helps you.
David Cardinal
2021-1-15
Mohammad Sami
2021-1-15
Can you share the functions here.
Luna
2021-1-15
Did you try inputparser?
David Cardinal
2021-1-15
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Argument Definitions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!