| ClassAccessAllowedQ[class, calling, accessibility] returns True, if the class calling may access a member of class with the given accessibility. |
This loads the package.
In the next example, an "outside" call is simulated by assuming that Object called a class member. As expected, only the public member of base may be used.
Defining a small class hierarchy, we can test what members could be accessed by a child class member. Now, the Protected member may be used.
|