MC++ FAQ
Thursday 07 | 18 | 2002
Access Specifiers
The .NET Runtime supports more access specifiers than those in Standard C++. Some of those are supported in C# through special keywords, such as internal.

In MC++, however, these are supported through combinations of the three existing access modifiers (public, protected, private). When combined in pairs, the most restrictive specifier becomes the "external", while the other becomes the "internal" accessibility. Here's the full list of specifiers:

  • public: Same as before
  • private: Same as before
  • protected: Same as before
  • public protected: Externally protected, internally public. This is the equivalent of C#'s protected internal.
  • public private: Externally private, internally public. This is the equivalent of C#'s internal.
  • private protected: Externally private, internally protected. This has no direct equivalent in C#, but represents the IL's famandassem modifier.
Posted by tomasr at July 18, 2002 03:51 AM
Comments
Post a comment
Name:


Email Address:


URL:


Comments:


Remember info?

Copyright(C) 2002, Tomas Restrepo, All rights reserved. Powered by Movable Type 2.63