MATLAB Object-Oriented Programming

(Joyce) #1

Class Members Access


In this section...
“Basic Knowledge” on page 12-28
“Applications for Access Control Lists” on page 12-29
“Specify Access to Class Members” on page 12-29
“Properties with Access Lists” on page 12-31
“Methods with Access Lists” on page 12-31
“Abstract Methods with Access Lists” on page 12-35

Basic Knowledge


The material presented in this section builds on an understanding of the following
information:

Related Topics


  • “Class Metadata” on page 16-2

  • “Attribute Specification” on page 5-22


Terminology and Concepts


  • Class members — Properties, methods, and events defined by a class

  • Defining class — The class defining the class member for which access is being
    specified

  • Get access — Permission to read the value of a property, controlled by the property
    GetAccess attribute

  • Set access — Permission to assign a value to a property; controlled by the property
    SetAccess attribute

  • Method access – Determines what other methods and functions can call the class
    method; controlled by the method Access attribute

  • Listen access — Permission to define listeners; controlled by the event ListenAccess
    attribute

  • Notify access — Permission to trigger events, controlled by the event NotifyAccess
    attribute


12 How to Build on Other Classes

Free download pdf