How to get a complete list of class properties including private properties.
26 views (last 30 days)
Show older comments
I wrote a class which have both public and private properties.
In a private mehod of the class, I need to get a complete list of porperties of the class, definitely, including all private properties.
Buit-in function 'properties' reveals only public properties.
What would be my options?
Thank you.
0 Comments
Accepted Answer
Steven Lord
on 7 Dec 2022
2 Comments
Steven Lord
on 7 Dec 2022
That would work as long as MYCLASS is not Abstract. But if you have an Abstract class (meaning you can't instantiate an instance of the class) see the second and third paragraphs in the Description section on the documentation page to which I linked.
More Answers (0)
See Also
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!