注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 RadHat AS5+Squid2.6.19+A..
 帮助

C# access modifiers


2007-10-01 16:39:34
 标签:C#    [推送到技术圈]

版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://feishunji.blog.51cto.com/237830/44629
This topic may be regarded as low leveled.
However so many buddies are stuglling with this issue that I'll no more keep silent.
 
Actually, it is not much complex as someone imagine, I will conclud with little words as follows:
 
Private = Grant Any code in this class . Reverse : code outside, including subclasses is denied.
Protected = Grant Any code in this class and subclasses of it. Code outside is denied.
Public = Grant Any code inside or outside.
Internal = Grant Any code inside this Assembly.

本文出自 “费费笔记” 博客,请务必保留此出处http://feishunji.blog.51cto.com/237830/44629





    文章评论
 
 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: