What is a default constructor?
什么是默认构造函数?
The first is a default constructor that sets a timestamp member variable.
第一部分是一个默认的构造函数,用来设置timestamp变量的值。
DefaultConstructible objects only need to have a default constructor.
可缺省构造的对象只需具有一个缺省构造函数。
In.net, a default constructor is also needed for a serialization class.
在. NET中,序列化类也需要缺省构造函数。
This code first creates a new InitialContext using the default constructor.
上面的代码首先使用缺省的构造器创建一个新InitialContext。
The default constructor invoked the no - arg constructor of the superclass.
默认构造函数调用父类的无参数构造函数。
As you can see, the default constructor USES a BuddyNoteMessageHandler object.
如您所见,默认的构造器使用BuddyNoteMessage Handler对象。
The class being serialized/deserialized is not required to have a default constructor.
序列化/逆序列化的类不需要有默认构造函数。
This essentially means that the WCF attribute will utilize the default constructor.
这基本上意味着WCF 将会使用默认的构造器。
An implicitly-declared default constructor is an inline public member of its class.
一个隐式声明的构造函数是这个类的一个内联公有成员。
For class types, objects are initialized by running the class's default constructor.
对类类型来说,通过运行类的默认构造函数来初始化对象。
The idea is to create a protected copy constructor aside from the default constructor.
保护的想法是创建一个拷贝构造函数除了默认构造函数。
A struct may not declare a default constructor (a constructor without parameters) or a destructor.
结构不能声明默认构造函数(没有参数的构造函数)或析构函数。
The @Name annotation tells Seam to use the default constructor of a class to create a new instance.
@Name注释告知Seam使用默认的类构造函数创建新实例。
The synthesized default constructor often suffices for classes that contain only members of class type.
合成的默认构造函数一般适用于仅包含类类型成员的类。
Note that you can drop the parentheses when using a default constructor (i.e., one that takes no arguments).
注意,你在使用默认构造函数时可以不用写括号(例如,没有参数的构造函数)。
A default constructor for a class X is a constructor of class X that can be called without an argument.
类x的默认构造函数是指可以被无参数调用的X的构造函数。
Eventually she will figure it out: Her code is missing the default constructor for the applet she is writing.
最后他将发现,他写的小应用程序代码缺少缺省的构造函数。
This constraint forces any type 't' to have a default constructor, that is, a constructor that takes no parameters.
这个约束强制任何类型'T '都必须具有无参数的公共构造函数。
If we do not explicitly define any constructors, then the compiler will generate the default constructor for us.
如果没有为一个类显式定义任何构造函数,编译器将自动为这个类生成默认构造函数。
According to the CDI specification, having a no-arg default constructor makes this class eligible to be a managed bean.
根据CDI规范,有一个no - arg默认构造函数使得这个类能成为托管bean。
If there is no default constructor, then there is a compile-time error: the object must be given an explicit initializer.
如果没有默认构造函数,那么将会出现编译时错误:必须要给对象指定显式的初始化式。
Class members that are not initialized in the initializer list are implicitly initialized by using their default constructor.
没有在初始化列表中初始化的类成员,使用它们的默认构造函数隐式初始化。
The creator attribute here is set to the value new, meaning that DWR should call the class's default constructor to obtain an instance.
这里的creator属性被设置为值new,这意味着DWR应当调用类的默认构造函数来获得实例。
The creator attribute here is set to the value new, meaning that DWR should call the class's default constructor to obtain an instance.
这里的creator属性被设置为值new,这意味着DWR应当调用类的默认构造函数来获得实例。
应用推荐