还要注意在创建类实例时没有声明、也没有new运算符。
Also notice the lack of declarations and the lack of a new operator when creating class instances.
更有可能是其他用于创建类实例的代码导致了过度的内存占用。
Most likely, other code is responsible for creating instances of the classes that have caused the extensive memory usage.
此成员是静态成员,并且可在不创建类实例的情况下调用。
This member a static member and can be invoked without creating an instance of the class.
连接是通过创建pdo基类的实例而建立的。
Connections are established by creating instances of the PDO base class.
正如您所料,这个构造函数将在创建类的一个实例时得到调用。
This will be called whenever an instance of this class is created, just as you would expect.
构造函数只是创建特定类实例(或对象)的特殊方法。
A constructor is just a special method that creates an instance (or object) of a particular class.
代理将为每个XML模式版本创建一个类实例。
The proxy will create one instance of a class loader for each XML schema version.
工厂,创建以上类的实例。
当执行远程调用时,创建类的实例并将其传递给异步服务方法,如清单4所示。
You create an instance of the class and pass it to your asynchronous service method when you make your remote call, as seen in Listing 4.
这里,只需要在服务代理处于适当时刻时创建类的实例。
Here, you just want to create an instance of your class as the service agent at the proper time.
如果你觉得字符串的.r转换方法不是很清晰,你也可以通过创建Regex类的实例来定义正则表达式,比如new Regex("""W""")。
Should you find the .r transformation method on strings unclear, you can also define regexes by creating new instances of the Regex class, as in: new Regex("""W""").
这个类创建适当的通道和CSProcess实例数组。
This class creates the appropriate channels and an array of CSProcess instances.
创建数据库后台模型的第一步是说明MySQL驱动类,并创建DBConnection实例。
The first steps in creating a database-backed model are to instantiate the MySQL driver class, and create a DBConnection instance.
创建以下owl类的实例。
使用RDFSchema创建类和实例。
首先,Martin使用Guice (Google推出的依赖注入框架)创建BillingService类的实例。
He first introduces an snippet that USES Guice (Google's Dependency Injection framework) to create an instance of the BillingService class.
创建了nessus类实例后,需要对其进行初始化。
After you create a Nessus class instance, it needs to be initialized.
可以直接创建这些类的实例,或者在某些情况下使用or g .apache . bcel . generic . InstructionFactoryhelper类。
You can create instances of these classes directly, or in some cases by using the org.apache.bcel.generic.InstructionFactory helper class.
Creator类用于定义创建产品对象实例的Factory方法。
Creator classes are used to define factory methods that create instances of the product objects.
这个Class对象成了JVM创建新类的所有实例的基础。
This class object becomes the basis for all instances of the new class created by the JVM.
@Name注释告知Seam使用默认的类构造函数创建新实例。
The @Name annotation tells Seam to use the default constructor of a class to create a new instance.
它们不像实例方法那样常见,但您将会经常看到一些类方法,它们作为创建新的类实例的工厂方法;这免得您必须进行分配和初始化。
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.
新的代码基于对类的一个很容易观察到的假设,换句话说,在创建类的实例前它会定义好绝大多数方法(通常是所有方法)。
The new code is based upon an easily observable assumption about a class, namely that it defines the vast majority (usually all) of its methods before an instance of the class is created.
使用这些类来执行编组和解组,以在其他事物中创建实现类的实例。
These classes are used to perform marshalling and unmarshalling, to create instances of the implementation classes, among other things.
当框架装入这个插件时,会创建该插件类的实例,使它有机会初始化全局对象。
The framework creates an instance of the plug-in class when it loads the plug-in, giving it a chance to initialize global objects.
匿名类是一种语法速写标记,使您能够在需要实现某个抽象类或者接口的地方创建一个类的实例,而不需要显式提供类的名称。
An anonymous class is a kind of syntactic shorthand that lets you instantiate a class implementing an abstract class or interface where you need it, without having to explicitly give it a class name.
一个实例方法的执行在类的一个特定示例中有效;您在调用该类的方法之前必须创建一个类的实例。
Execution of an instance method is scoped to a particular instance of the class; you must create an instance of the class before you can invoke the method of the class.
必须创建子类(即,创建继承它的类),并创建该子类的实例。
You must subclass (that is, create a class that extends it) and create an instance of the child class.
这是一个可用来创建单例类实例确不需要为每个特定的类重写单例模式代码的可重用的类。
This is a class that can be used repeatedly to instantiate a class as a singleton without having to re-write the singleton pattern code for that specific class.
这是一个可用来创建单例类实例确不需要为每个特定的类重写单例模式代码的可重用的类。
This is a class that can be used repeatedly to instantiate a class as a singleton without having to re-write the singleton pattern code for that specific class.
应用推荐