July 2004
Intermediate to advanced
752 pages
35h 59m
English
A kind of dependency that grants the client element permission to use the contents of the supplier element, regardless of the visibility declarations of the content elements.
Permission is a kind of dependency that makes the internal elements of the supplier accessible to the client, even if they have been declared private. This has the same effect as the friend construct in C++.
A permission dependency is shown as a dashed arrow from the client (the element gaining permission) to the supplier (the element granting permission) with the keyword «permit» attached to the arrow.
In Figure 14-212, the PrintManager can delete any job and reset the printer, even though those operations are private.
Read now
Unlock full access