how to access private

조회 수: 7 (최근 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 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