Passing options from subclass constructor to superclass?
Ältere Kommentare anzeigen
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 Kommentare
Mohammad Sami
am 15 Jan. 2021
See if the following helps you.
David Cardinal
am 15 Jan. 2021
Mohammad Sami
am 15 Jan. 2021
Can you share the functions here.
Luna
am 15 Jan. 2021
Did you try inputparser?
David Cardinal
am 15 Jan. 2021
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Argument Definitions finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!