Also, curious students begin asking about access modifiers like public and private at this point.
另外,好奇的学生将在此时开始询问关于public和private之类的访问修饰符。
For example, Groovy doesn't require semicolons, and it makes variable types and access modifiers optional.
例如,Groovy不要求使用分号,变量类型和访问修饰符也是可选的。
No access modifiers or attributes are allowed.
不允许使用访问修饰符或特性。
You cannot change this by including any access modifiers.
不能靠任何访问修饰来修改。
These access modifiers define how users of the class can access the fields.
这些访问修饰符定义类的使用者访问字段的方式。
Enumeration members are always public, and no access modifiers can be applied.
列举型别成员也都是公用成员,无法套用任何存取修饰词。
Interfaces members are automatically public, and they cannot include any access modifiers.
接口成员自动公用,而且它们不能包含任何访问修饰符。
Note that if the structure itself has a more restricted access level, this automatically restricts access to its members, even if you adjust their access levels with the access modifiers.
请注意,如果结构本身具有限制性更高的访问级别,这会自动限制对其成员的访问,即使您使用访问修饰符来调整其成员的访问级别也是如此。
Access modifiers are not allowed on namespaces.
命名空间上不允许使用访问修饰符。
Access modifiers are keywords used to specify the declared accessibility of a member or a type.
存取修饰词是用于指定成员或型别之宣告存取范围的关键字。
Access modifiers are keywords used to specify the declared accessibility of a member or a type.
存取修饰词是用于指定成员或型别之宣告存取范围的关键字。
应用推荐