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

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.
主站蜘蛛池模板: 昌吉市| 田林县| 翼城县| 桓台县| 和龙市| 通州区| 鄢陵县| 福海县| 永修县| 盐山县| 犍为县| 新巴尔虎右旗| 沽源县| 沁阳市| 云浮市| 饶平县| 邛崃市| 永仁县| 清原| 陈巴尔虎旗| 临桂县| 东至县| 利津县| 即墨市| 工布江达县| 色达县| 津市市| 铜梁县| 定远县| 浦江县| 隆化县| 渝中区| 砀山县| 万山特区| 清苑县| 秦安县| 旺苍县| 南丰县| 辛集市| 邵武市| 凤庆县|