For example, Groovy doesn't require semicolons, and it makes variable types and access modifiers optional.
例如,Groovy不要求使用分号,变量类型和访问修饰符也是可选的。
No access modifiers or attributes are allowed.
不允许使用访问修饰符或特性。
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.
存取修饰词是用于指定成员或型别之宣告存取范围的关键字。
应用推荐