不允许使用访问修饰符或特性。
命名空间上不允许使用访问修饰符。
更改模块的访问修饰符。
更改类的访问修饰符。
这些访问修饰符定义类的使用者访问字段的方式。
These access modifiers define how users of the class can access the fields.
返回指定修饰符中描述访问修饰符标记的字符串。
Return a string describing the access modifier flags in the specified modifier.
接口成员自动公用,而且它们不能包含任何访问修饰符。
Interfaces members are automatically public, and they cannot include any access modifiers.
抽象类中可以有方法的实现,也可以指定方法的访问修饰符。
Overloading simply involves having a method with the same name within the class.
抽象类中可以有方法的实现,也可以指定方法的访问修饰符。
When the class itself is inherited from an abstract class, but not all base abstract methods have been over-ridden.
如果在成员声明中未指定访问修饰符,则使用默认的可访问性。
If no access modifier is specified in a member declaration, a default accessibility is used.
例如,Groovy不要求使用分号,变量类型和访问修饰符也是可选的。
For example, Groovy doesn't require semicolons, and it makes variable types and access modifiers optional.
For example:返回指定修饰符中描述访问修饰符标记的字符串。
Return a string describing the access modifier flags in the specified modifier.
Modifier类提供了静态方法和常量来对类和成员访问修饰符进行编码。
The Modifier class provides static methods and constants to decode class and member access modifiers.
所以在研究该语言的函数性元素apply机制前,我将先介绍包和访问修饰符。
So I'm going to take a moment and cover this before diving into one of the more functional elements of the language, the apply mechanism.
另外,好奇的学生将在此时开始询问关于public和private之类的访问修饰符。
Also, curious students begin asking about access modifiers like public and private at this point.
注意,如果您不对构造函数使用访问修饰符,则在默认情况下它仍为私有构造函数。
Note that if you do not use an access modifier with the constructor it will still be private by default.
你可以利用这个新的Custom关键字来定义一个自定义事件以及它的访问修饰符。
You declare a custom event and its accessors using the new custom keyword.
最近,读者的反馈让我意识到在制作本系列的过程中我遗漏了Scala的语言的一个重要方面:Scala的包和访问修饰符功能。
Recently, reader feedback has led me to realize that I have left behind an important aspect of Scala's language while crafting this series: Scala's package and access modifier facilities.
请注意,如果结构本身具有限制性更高的访问级别,这会自动限制对其成员的访问,即使您使用访问修饰符来调整其成员的访问级别也是如此。
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.
包成员可以使用可见性修饰符来标记,以控制对成员的访问。
Package members may be marked with visibility modifiers to help control access to the member.
析构函数不能有参数,不能有访问级别修饰符,不能被显式调用。实例的析构函数在垃圾收集时自动调用。
Destructors cannot have parameters, they cannot have accessibility modifiers, and they cannot be invoked explicitly. The destructor for an instance is invoked automatically during garbage collection.
下面的哪些修饰符可以获得需要的访问控制。
无法将任何访问或过程修饰符或任何其他修饰符应用于命名空间。
You cannot apply any access or procedure modifiers, or any other modifiers, to a namespace.
无法将任何访问或过程修饰符或任何其他修饰符应用于命名空间。
You cannot apply any access or procedure modifiers, or any other modifiers, to a namespace.
应用推荐