第5章面向对象程序设计基础..ppt

Msdn:搜索access modifiers ?Class and Struct Accessibility Classes and structs that are declared directly within a namespace (in other words, that are not nested within other classes or structs) can be either public or internal. Internal is the default if no access modifier is specified. Class and Struct Member Accessibility Class members (including nested classes and structs) can be declared with any of the five types of access. Struct members cannot be declared as protected because structs do not support inheritance. public The type or member can be accessed by any other code in the

文档评论(0)

1亿VIP精品文档

相关文档