Entry
C#: Class: Access: Modifier: Which access modifiers in C#? [internal / private / protected / public]
Dec 12th, 2003 15:21
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 25 September 2003 - 05:18 pm ------------------
C#: Class: Access: Modifier: Which access modifiers in C#? [internal /
private / protected / public]
---
1. Class Access Levels
1. Classes can have five levels of access:
1. internal
Available only to some classes.
2. internal protected
Available only to some classes.
3. private:
Available only to this class.
4. protected:
Available to only from the base class.
5. public:
Available to everybody
---
---
[Internet: source:
http://genamics.com/developer/csharp_comparative.htm#20]
There are five access levels in C#, private, internal, protected,
internal protected, and public.
Private and public have the same
meanings as in Java, noting that in C# the default access level is
private, rather than package.
Internal access is scoped to assemblies
rather than namespaces (which would be more analogous to Java).
Internal protected access is equivalent to Java's protected access, and
protected access is equivalent to Java's private protected access made
obsolete in Java some time ago.
---
---
Internet: see also:
---
C#: Class: Friend: Can someone tell me what friend class is in C#?
http://www.faqts.com/knowledge_base/view.phtml/aid/24737/fid/791
---
C++: Class: Access: Modifier: Which access modifiers in C++? [friend /
private / protected / public]
http://www.faqts.com/knowledge_base/view.phtml/aid/24762/fid/163
---
Delphi:Class:Access:Modifier:Which access modifiers in Delphi?
[private/protected/public/published]
http://www.faqts.com/knowledge_base/view.phtml/aid/24757/fid/175
---
Java: Class: Access: Modifier: Which access modifiers in Java? [none /
private / protected / public]
http://www.faqts.com/knowledge_base/view.phtml/aid/24759/fid/165
---
Visual Basic: Class: Access: Modifier: Which access modifiers in
Visual Basic.NET? [private/public]
http://www.faqts.com/knowledge_base/view.phtml/aid/27365/fid/1610
----------------------------------------------------------------------