how to access private

20 次查看(过去 30 天)
Shatha
Shatha 2023-1-2

回答(1 个)

Steven Lord
Steven Lord 2023-1-2
As stated in the documentation properties with Access = 'private' "can be accessed only by members of the defining class." You cannot access them outside of methods of that class.
Similarly, methods with Access = 'private' can be called "by class methods only (not from subclasses)". You cannot call them outside other methods of that class.

类别

Help CenterFile Exchange 中查找有关 Construct and Work with Object Arrays 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by