how to access private

18 visualizaciones (últimos 30 días)
Shatha
Shatha el 2 de En. de 2023
Respondida: Steven Lord el 2 de En. de 2023

Respuestas (1)

Steven Lord
Steven Lord el 2 de En. de 2023
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.

Categorías

Más información sobre Construct and Work with Object Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by