how to access private

15 ビュー (過去 30 日間)
Shatha
Shatha 2023 年 1 月 2 日
回答済み: Steven Lord 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 Center および File ExchangeConstruct 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