Property Access List
This class declares access lists for the property GetAccess
and Access
attributes:
classdef PropertyAccess properties (GetAccess = {?ClassA, ?ClassB}, SetAccess = private) Prop1 end properties (Access = ?ClassC) Prop2 end end
The class PropertyAccess
specifies the following property access:
Gives the classes
ClassA
andClassB
get access to theProp1
property.Gives all subclasses of
ClassA
andClassB
get access to theProp1
property.Does not provide get access to
Prop1
from subclasses ofPropertyAccess
.Defines private set access for the
Prop1
property.Gives set and get access to
Prop2
forClassC
and its subclasses.