What is a default constructor?
什么是默认构造函数?
It must have a public default constructor.
必须拥有公有的默认构造函数。
A public default constructor; for example.
公共的默认构造函数;例如。
You must have a public 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.
一个隐式声明的构造函数是这个类的一个内联公有成员。
In the method (shown below), you create a Shell object with the default constructor.
在下面的方法中,您在默认的构造函数中创建Shell对象。
Because I'm building a class myself, I need to explicitly create the default constructor.
因为我自己正在构建一个类,所以我需要显式地创建默认构造函数。
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.
保护的想法是创建一个拷贝构造函数除了默认构造函数。
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。
According to the CDI specification, having a no-arg default constructor makes this class eligible to be a managed bean.
根据CDI规范,有一个no - arg默认构造函数使得这个类能成为托管bean。
应用推荐