码家

Web Platform, Cloud and Mobile Application Development

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
ØUsed to expose or hide the details/attributes in a class
§Public
–A declaration that is accessible to all classes
§Protected
–A declaration that is accessible to only to the class itself and its subclasses
§Private
–A declaration that is accessible to only to the class itself
Public 
可以被所有的类访问
Protected
只能被自己和子类访问
Private
只能被自己访问
posted on 2011-05-26 09:17  海山  阅读(208)  评论(0)    收藏  举报