If you find some methods that do not fit with the name of the class, you should consider moving those methods to another class.
如果你找到了一些方法与这个类的名称不相称,你可以考虑将这些方法移到另一个类中。
These are not as common as instance methods, but you will often see class methods that are factory methods for creating new instances of the class; this saves you from having to alloc and initialize.
它们不像实例方法那样常见,但您将会经常看到一些类方法,它们作为创建新的类实例的工厂方法;这免得您必须进行分配和初始化。
This approach makes testing protected methods much easier because the test case class can now extend the class that contains the protected methods.
这种方法使得测试受保护的方法非常容易,因为测试案例类现在可以扩展包含受保护方法的类了。
With the direct dispatching approach, the API definition class is attached to the controller class, and the API methods are implemented in the controller class as public instance methods.
通过直接调度方法,可以把API定义类与控制器类绑定在一起,并且在控制器类中实现作为公共实例方法的API方法。
Metadata provides a helpful way to indicate if methods are dependent on other methods, if they are incomplete, if a certain class must reference another class, and so on.
元数据提供了一种有用的方法来指明方法是否取决于其他方法,它们是否完整,特定类是否必须引用其他类,等等。
Update class signatures (methods and attributes) directly from scenarios, so that we could add missing methods on the fly without having to revert to the class specification.
从场景直接更新类的签名(方法和属性),以使我们不必回到类的说明中添加缺少的方法。
The key point is just that the constant pool contains all the references to other classes and methods used by this class, along with the actual definitions for this class and its methods.
关键之处在于常量池包含对该类所用的其它类和方法的所有引用,还包含了该类及其方法的实际定义。
Because the trait's methods aren't really a "part" of any class until the trait is implemented by that class, the compiler can leave out checking some aspects of the methods' logic until later.
因为在类实现特征的方法之前,它实际上并不是任何类的一“部分”,因此编译器可将方法的某些逻辑方面留到以后再处理。
It USES annotations to map the resource class with a URI and to map standard HTTP methods in an HTTP request to the methods in the resource class.
它使用注释映射资源类与URI,并将HTTP请求中的标准HTTP方法映射到资源类中的方法。
A stub class defines all the methods that an SEI defines, therefore, a client can invoke methods of a web service directly via the stub class.
一个存根类定义一个SEI定义的所有方法,因此,一个客户机可以通过存根类直接调用Web服务方法。
The resource class is the base class that contains methods for EMF resource manipulation, including methods for reading and saving content.
resource类是一个基类,它包含用于操作e MF资源的方法,包括读取和保存内容的方法。
That's just the start for CtClass, though, which also defines methods for adding new fields, methods, and constructors to the class, and for altering the class name, superclass, and interfaces.
不过,这只是CtClass的部分内容,它还定义了在类中添加新字段、方法和构造函数、以及改变类、父类和接口的方法。
The framework will call the class delegate every time it is necessary, and the class must implement all required methods. These methods are.
有必要时该框架都会调用类delegate,且该类必须执行所有需要的方法。
It is necessary to compile a.dll that contains a class that defines these methods, then pass an instance of this class into the RqGuiApp methods.
需要把定义了这些方法的类编译成一个. dll,然后把这个类的实例放到RqGuiApp中。
If a class has both synchronized and nonsynchronized methods, multiple threads can still access the nonsynchronized methods of the class!
如果类具有同步方法和非同步方法,则多个线程仍然能够访问该类的非同步方法!
Version-safe modifiers help control the methods from a derived class that override methods in a base class.
版本安全修饰词可以控制衍生类别的方法,这些方法能够覆写基底类别的方法。
You create a class that inherits the properties of the base class, override any base methods that you want to extend, and add any additional properties or methods that you need.
您先建立继承基底类别属性的类别、覆写您要扩充的任何基底方法并加入您需要的任何其他属性或方法。
Now the methods are called using the object of the CGLView class instead of calling it directly as base class methods.
通过CGLView的对象调用方法代替了以基类形式直接调用基类的方法操作模式-如下。
Maxim No. 3: In judging the encryption security of a class of methods, one has to take into account that the adversary knows the class of methods.
评判一个密码算法的安全性时,必须考虑到对手也知道这个加密算法。
Maxim No. 3: In judging the encryption security of a class of methods, one has to take into account that the adversary knows the class of methods.
评判一个密码算法的安全性时,必须考虑到对手也知道这个加密算法。
应用推荐