Information Technology Reference
In-Depth Information
Protected Member Accessibility
The
protected
access level is like the
private
access level, except that it allows classes derived
from the class to access the member. Figure 7-18 illustrates protected accessibility. Notice that
even classes outside the assembly that are derived from the class have access to the member.
Figure 7-18.
Protected member accessibility
Internal Member Accessibility
Members marked
internal
are visible to all the classes in the assembly, but not to classes out-
side the assembly, as shown in Figure 7-19.
Figure 7-19.
Internal member accessibility