C# has 5 Access Modifiers :
1.Public: The item is visible to any other code.
2.Private: The item is visible only inside the type to which it belongs.
3.Protected: The item is visible only to any derived type
4.Internal: The item is visible only within its containing assembly.
5.Protected Internal: The item is visible to any code within its containing assembly and also to any code inside a derived type
No comments:
Post a Comment