就常见的字类名称,本文对它们的渊源流变进行了梳理,从而勾勒出它们在不同时期的大致状况。
Concerning the common names of words, this paper mainly combs out their sources and changes and then gives a brief account of their general situation in different periods.
接下来,您需要向类中添加关键字,因为您的扩展只能处理定义了关键字的类。
Next, you need to add a keyword to the class, because your extension will work only on a class that has a keyword defined.
PHPV5.3添加了关键字static以允许针对当前类进行引用。
PHP V5.3 has added the keyword static to allow you to make a reference against the current class.
第一个也是最重要的新特性是针对类的方法和实例变量的访问保护 ——public、protected 和 private关键字。
The first and most important addition was access protection for methods and instance variables on classes -- the public, protected, and private keywords.
我们再一次用一个字来表示它所在的等价类,并用等号表示等价。
Once again we use a word to denote its equivalence class and write equality to express equivalence.
如果想要让某个公共类的方法仅限于由同一个类的成员访问,该采用哪一个访问修饰字实现这一目的呢?
You want to limit access to a method of a public class to member of the same class. Which access modifier accomlishes this objective?
self关键字指向的是包含类,且不会意识到子类。
The self keyword points to the containing class and is unaware of subclasses.
请注意,现在,在类定义中,关键字参数被允许出现在基类列表之后 —通常来讲,即class Foo(*bases, **kwds):pass。
Notice that now in a class definition, keyword arguments are allowed after the list of base classes—generally speaking, class Foo(*bases, **kwds): pass.
类用implements关键字实现接口,如清单9所示。
A class implements an interface with the implements keyword, as shown in Listing 9.
可能并不需要30兆字节大小的类库、由一组本体专家(ontologists)来设计对象模型,或者依赖15个其他软件包。
And you probably don't require a 30-megabyte class library, a team of ontologists to design the object model, and dependencies on 15 other packages either.
这个实用程序类可以包含针对所有这类关键字或函数的函数。
This utility class can have functions for all such keywords or functions.
这些类将成为在类声明上使用static关键字的备选。
These classes will be candidates for using the static keyword on the class declaration.
还有使用ACE 实现IPC的其他方法,比如共享内存或UNIX 风格的套接字寻址(ACE_LSOCK*组中的类)。
There are several other ways of initiating IPC using ACE, like shared memory or UNIX-style socket addressing (the ACE_LSOCK* group of classes), which this article does not address.
基本上,编译器会用所包含类的名称替换self关键字。
Essentially, the compiler replaces the self keyword with the enclosing class's name. It is almost like the following line.
在代码块中,delegate关键字指向您将要向其中添加方法的类的实例。
Within the code block, the delegate keyword refers to the instance of the class you are adding methods to.
在当前的beta版本中,VisualBasic不支持类声明中的Shared关键字。
In the current beta, Visual Basic does not support the Shared keyword on a class declaration.
当这个类被用static 关键字声明并且在应用程序的整个生存期中存在时尤其是这样。
This is particularly true if the class has been declared static and exists for the life of the application.
代码补全,可以补全包,类,属性,成员变量,变量,方法,关键字,甚至对于Swinguibuilder有特殊的支持。
Code completion for packages, classes, properties, fields, variables, methods, keywords, and even specific support for the Swing UI builder.
类常量始终为public,所以不能使用可见度关键字。
Class constants are always public, so you can't use the visibility keywords.
socket类提供了以任何格式对服务器套接字读写二进制数据的方法。
The socket class provides a means to read and write binary data to server sockets in any format.
取自所观察到的特定症状的非常特定的关键字,例如错误消息或错误编号,或者在堆栈跟踪中找到的类或方法名称,等等。
Very specific keywords taken from specific symptoms that you observed, such as an error message or error number, or the name of a class or method found in a stack trace, and so on.
该转换还提供了一个选项来为类类型的模板参数生成替换class 的关键字。
The transformation also provides an option to generate the keyword in place of class for template parameters of type class.
为了确保实现是线程安全的,实现该接口的类应该在方法上使用synchronized关键字,或者在方法内部使用同步锁。
To ensure that your implementation is thread-safe, a class that implements this interface should use either the synchronized keyword on the methods or synchronized blocks within the methods.
这一代码清单创建了一个名为ClientSocket的新类,随后声明了一个名为“xml_socket”的xml套接字对象。
This code listing creates a new class called ClientSocket and then declares an XML socket object named "xml_socket."
可以给其一个名称(也就是一个类名),指定参数(和在构造函数中一样),甚至可以使用关键字 .this,这意味着在函数范围内引用变量。
You can give it a name (that is, a class name), specify parameters (as in a constructor), and even use the .this keyword, which basically means referencing a variable within the scope of the function.
本扩展仅仅搜寻为该类定义的关键字,然后使用它们,来添加与源代码中的类相关的新记录标签。
This extension will do nothing more than look for any keywords defined for this class, and use them to add a new documentation tag associated with the class in the source code.
类成员和变量被默认为是公有的(在Dart中没有“public”这个关键字),尽管对于Dart来说“public”仅仅是脚本,而并非一个涵盖整个页面的作用域。
Class members and variables are considered public by default (there's no "public" keyword in Dart), although "public" for Dart is not a scope that encompasses the entire page - just the script.
类成员和变量被默认为是公有的(在Dart中没有“public”这个关键字),尽管对于Dart来说“public”仅仅是脚本,而并非一个涵盖整个页面的作用域。
Class members and variables are considered public by default (there's no "public" keyword in Dart), although "public" for Dart is not a scope that encompasses the entire page - just the script.
应用推荐