官术网_书友最值得收藏!

Visibility modifiers

Usually, not all functions or classes are designed to be part of your public API. Therefore, it is desirable to mark some parts of your code as internal and not accessible outside of the class or package. The keywords that are used to specify this are called visibility modifiers.

There are four visibility modifiers—public, internal, protected, and private. If no modifier is given, then the default is used, which is public. This means they are fully visible to any code that wishes to use them.

Java developers will know that this contrasts to the Java default, which has package-level visibility.
主站蜘蛛池模板: 焉耆| 搜索| 读书| 彰武县| 罗城| 玉林市| 英山县| 寻乌县| 沧州市| 宁南县| 东阳市| 千阳县| 崇仁县| 开原市| 崇仁县| 贵港市| 四平市| 社会| 马鞍山市| 克拉玛依市| 屯昌县| 高尔夫| 沂水县| 稻城县| 景东| 安阳县| 乐昌市| 仙居县| 辉南县| 磴口县| 灯塔市| 普兰店市| 潼南县| 云南省| 日土县| 吴忠市| 伊宁市| 思茅市| 马山县| 孙吴县| 米易县|