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

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.
主站蜘蛛池模板: 安陆市| 玉屏| 休宁县| 正宁县| 报价| 定襄县| 娄烦县| 五大连池市| 安泽县| 酒泉市| 杭锦后旗| 江陵县| 广灵县| 九龙坡区| 东丽区| 诸暨市| 赣榆县| 山阴县| 台中市| 仁怀市| 曲松县| 临江市| 孙吴县| 东乌| 广南县| 南昌县| 衡南县| 大宁县| 信丰县| 云浮市| 汉沽区| 临漳县| 四平市| 调兵山市| 岱山县| 万安县| 泉州市| 醴陵市| 景德镇市| 安岳县| 高青县|