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

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.
主站蜘蛛池模板: 宿州市| 手游| 泰顺县| 繁峙县| 昌都县| 平度市| 百色市| 龙岩市| 班戈县| 额敏县| 黄浦区| 温宿县| 通州区| 金秀| 贵溪市| 洪江市| 韩城市| 吉林市| 东源县| 太康县| 井陉县| 青岛市| 田林县| 武隆县| 高平市| 长乐市| 镇坪县| 巴中市| 昌图县| 涞水县| 当阳市| 沁阳市| 樟树市| 疏勒县| 牙克石市| 凉城县| 林周县| 额尔古纳市| 牡丹江市| 罗平县| 淄博市|